Update run.py
Browse files
run.py
CHANGED
@@ -89,9 +89,9 @@ def response(
|
|
89 |
output = ""
|
90 |
for response in stream:
|
91 |
output += response.token.text
|
92 |
-
save_to_sheet("date",prompt, output)
|
93 |
yield output
|
94 |
#output=output+"\n\n<br><details open><summary><strong>Sources</strong></summary><br><ul>"+ "".join(["<li>" + s + "</li>" for s in combination])+"</ul></details>"
|
|
|
95 |
yield output
|
96 |
|
97 |
gr.ChatInterface(response, chatbot=gr.Chatbot(value=[[None,"Herzlich willkommen! Ich bin Chätti ein KI-basiertes Studienassistenzsystem, das für jede Anfrage die am besten Studieninformationen empfiehlt.<br>Erzähle mir, was du gerne tust!"]],render_markdown=True),title="German Studyhelper Chätti").queue().launch(share=True) #False, server_name="0.0.0.0", server_port=7864)
|
|
|
89 |
output = ""
|
90 |
for response in stream:
|
91 |
output += response.token.text
|
|
|
92 |
yield output
|
93 |
#output=output+"\n\n<br><details open><summary><strong>Sources</strong></summary><br><ul>"+ "".join(["<li>" + s + "</li>" for s in combination])+"</ul></details>"
|
94 |
+
save_to_sheet("date",prompt, output)
|
95 |
yield output
|
96 |
|
97 |
gr.ChatInterface(response, chatbot=gr.Chatbot(value=[[None,"Herzlich willkommen! Ich bin Chätti ein KI-basiertes Studienassistenzsystem, das für jede Anfrage die am besten Studieninformationen empfiehlt.<br>Erzähle mir, was du gerne tust!"]],render_markdown=True),title="German Studyhelper Chätti").queue().launch(share=True) #False, server_name="0.0.0.0", server_port=7864)
|