Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,15 +65,17 @@ def respond(message, history):
|
|
65 |
outputs += output
|
66 |
yield outputs
|
67 |
else:
|
|
|
68 |
# Call non-stream response and return message output
|
69 |
response = vq.submit_query(message)
|
|
|
70 |
return response
|
71 |
|
72 |
def random_fun(message, history):
|
73 |
return message + '!'
|
74 |
|
75 |
|
76 |
-
demo = gr.ChatInterface(
|
77 |
|
78 |
"""
|
79 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
|
|
65 |
outputs += output
|
66 |
yield outputs
|
67 |
else:
|
68 |
+
print("Calling normal query")
|
69 |
# Call non-stream response and return message output
|
70 |
response = vq.submit_query(message)
|
71 |
+
print("Chat response: {response}")
|
72 |
return response
|
73 |
|
74 |
def random_fun(message, history):
|
75 |
return message + '!'
|
76 |
|
77 |
|
78 |
+
demo = gr.ChatInterface(respond, title = cfg.title, description = cfg.description)
|
79 |
|
80 |
"""
|
81 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|