Spaces:
Runtime error
Runtime error
Chaow Wu commited on
Commit ·
4e007e5
1
Parent(s): 0f1d1a4
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import html
|
|
| 7 |
# For local streaming, the websockets are hosted without ssl - http://
|
| 8 |
HOST = '127.0.0.1:5000'
|
| 9 |
|
| 10 |
-
URI = f'https://
|
| 11 |
#URI = f'http://127.0.0.1:5000/api/v1/chat'
|
| 12 |
def run(user_input, history):
|
| 13 |
request = {
|
|
@@ -84,6 +84,7 @@ async def serve(q: Q):
|
|
| 84 |
kwargs = dict(instruction_nochat=q.args.chatbot)
|
| 85 |
try:
|
| 86 |
history = run(q.args.charbot, history)
|
|
|
|
| 87 |
bot_res = history["visible"][-1][-1]
|
| 88 |
q.page['chatbot'].data += [bot_res, False]
|
| 89 |
except:
|
|
|
|
| 7 |
# For local streaming, the websockets are hosted without ssl - http://
|
| 8 |
HOST = '127.0.0.1:5000'
|
| 9 |
|
| 10 |
+
URI = f'https://that-buyer-moments-zen.trycloudflare.com/api/v1/chat'
|
| 11 |
#URI = f'http://127.0.0.1:5000/api/v1/chat'
|
| 12 |
def run(user_input, history):
|
| 13 |
request = {
|
|
|
|
| 84 |
kwargs = dict(instruction_nochat=q.args.chatbot)
|
| 85 |
try:
|
| 86 |
history = run(q.args.charbot, history)
|
| 87 |
+
print("HOOORAY")
|
| 88 |
bot_res = history["visible"][-1][-1]
|
| 89 |
q.page['chatbot'].data += [bot_res, False]
|
| 90 |
except:
|