Spaces:
Sleeping
Sleeping
williamagyapong
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -5,7 +5,7 @@ from dotenv import load_dotenv
|
|
5 |
from heyoo import WhatsApp
|
6 |
import assemblyai as aai
|
7 |
import openai
|
8 |
-
from utility import parse_multiple_transactions, create_inventory, create_sale
|
9 |
from google.cloud import firestore
|
10 |
|
11 |
|
@@ -39,7 +39,7 @@ client = openai.OpenAI(
|
|
39 |
base_url="https://api.sambanova.ai/v1",
|
40 |
)
|
41 |
|
42 |
-
def
|
43 |
#----- Call API to classify and extract relevant transaction information
|
44 |
# These templates help provide a unified response format for use as context clues when
|
45 |
# parsing the AI generated response into a structured data format
|
|
|
5 |
from heyoo import WhatsApp
|
6 |
import assemblyai as aai
|
7 |
import openai
|
8 |
+
from utility import generateResponse, parse_multiple_transactions, create_inventory, create_sale
|
9 |
from google.cloud import firestore
|
10 |
|
11 |
|
|
|
39 |
base_url="https://api.sambanova.ai/v1",
|
40 |
)
|
41 |
|
42 |
+
def generateResponse_old(prompt):
|
43 |
#----- Call API to classify and extract relevant transaction information
|
44 |
# These templates help provide a unified response format for use as context clues when
|
45 |
# parsing the AI generated response into a structured data format
|