Spaces:
Runtime error
Runtime error
Update app.py
#1
by
robertselvam
- opened
app.py
CHANGED
@@ -148,7 +148,7 @@ class Chat_Bot:
|
|
148 |
file_path = "vodafone_customer_details.json"
|
149 |
with open(file_path) as file:
|
150 |
customer_details = json.load(file)
|
151 |
-
prompt
|
152 |
response = openai.Completion.create(
|
153 |
model="text-davinci-003",
|
154 |
prompt=prompt,
|
|
|
148 |
file_path = "vodafone_customer_details.json"
|
149 |
with open(file_path) as file:
|
150 |
customer_details = json.load(file)
|
151 |
+
prompt = f"{history}{text} if customer ask any information take it from {customer_details} and if customer say thankyou You should end the conversation with greetings."
|
152 |
response = openai.Completion.create(
|
153 |
model="text-davinci-003",
|
154 |
prompt=prompt,
|