williamagyapong commited on
Commit
0ceeca1
·
verified ·
1 Parent(s): 8474414

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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 generateResponse(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
 
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