Commit
•
459dc97
1
Parent(s):
ec71a57
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,6 @@ def chat_handler(hist):
|
|
37 |
|
38 |
if reply == "" or reply == -1:
|
39 |
raise gr.Error("Chatbot response is empty. Please reload the page. If the issue repeats please contact me.")
|
40 |
-
sleep(20) #TODO REMOVE/REDUCE
|
41 |
|
42 |
hist.append({"role": "assistant", "content": reply})
|
43 |
speaker = re.findall(r"\[([A-Za-z0-9\s]+)\]:", reply)
|
|
|
37 |
|
38 |
if reply == "" or reply == -1:
|
39 |
raise gr.Error("Chatbot response is empty. Please reload the page. If the issue repeats please contact me.")
|
|
|
40 |
|
41 |
hist.append({"role": "assistant", "content": reply})
|
42 |
speaker = re.findall(r"\[([A-Za-z0-9\s]+)\]:", reply)
|