Spaces:
Sleeping
Sleeping
Commit
·
3ece718
1
Parent(s):
a746e38
Update run.py
Browse files
run.py
CHANGED
@@ -130,6 +130,7 @@ def response(message, history):
|
|
130 |
print("Exception:"+str(e))
|
131 |
pass
|
132 |
yield response
|
|
|
133 |
|
134 |
-
gr.ChatInterface(response).queue().launch(share=True) #False, server_name="0.0.0.0", server_port=7864)
|
135 |
print("Interface up and running!")
|
|
|
130 |
print("Exception:"+str(e))
|
131 |
pass
|
132 |
yield response
|
133 |
+
yield response+"\n\n<br><strong>Sources:</strong><br><ul>"+ "".join(["<li>" + s + "</li>" for s in results])+"</ul>"
|
134 |
|
135 |
+
gr.ChatInterface(response, chatbot=gr.Chatbot(render_markdown=True)).queue().launch(share=True) #False, server_name="0.0.0.0", server_port=7864)
|
136 |
print("Interface up and running!")
|