Spaces:
Runtime error
Runtime error
DiamondYin
commited on
Commit
·
b77efdf
1
Parent(s):
6d124cb
Update app.py
Browse files
app.py
CHANGED
@@ -78,12 +78,18 @@ def get_response(history, audio_input):
|
|
78 |
if question.lower().strip() == 'hi':
|
79 |
question = 'hello'
|
80 |
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
83 |
#answer1 = str(answer)
|
84 |
LOGGER.info("\ndocument_response: %s", answer)
|
85 |
print('\ndocument_response:', answer)
|
86 |
|
|
|
|
|
|
|
87 |
for trigger in GENERAL_RSPONSE_TRIGGERS:
|
88 |
if trigger in answer:
|
89 |
MESSAGES.append({"role": "user", "content": question})
|
|
|
78 |
if question.lower().strip() == 'hi':
|
79 |
question = 'hello'
|
80 |
|
81 |
+
message1 =[{"role": "user", "content": question}]
|
82 |
+
message1 = MESSAGES + message1
|
83 |
+
|
84 |
+
answer = conv_model.run(f"{message1}")
|
85 |
+
#answer = SparkApi_jayce.create(question)
|
86 |
#answer1 = str(answer)
|
87 |
LOGGER.info("\ndocument_response: %s", answer)
|
88 |
print('\ndocument_response:', answer)
|
89 |
|
90 |
+
#q1 = [{"role": "user", "content": question}]
|
91 |
+
|
92 |
+
|
93 |
for trigger in GENERAL_RSPONSE_TRIGGERS:
|
94 |
if trigger in answer:
|
95 |
MESSAGES.append({"role": "user", "content": question})
|