Spaces:
Sleeping
Sleeping
Tim Seufert
commited on
Commit
·
321d05c
1
Parent(s):
5463f9d
update interface beta test2
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import os
|
2 |
-
import time
|
3 |
import gradio as gr
|
4 |
import cohere
|
5 |
|
@@ -38,8 +37,7 @@ def respond(message, chat_history):
|
|
38 |
|
39 |
# Update chat history
|
40 |
chat_history.append((message, response))
|
41 |
-
return
|
42 |
-
|
43 |
except Exception as e:
|
44 |
return str(e), chat_history
|
45 |
|
|
|
1 |
import os
|
|
|
2 |
import gradio as gr
|
3 |
import cohere
|
4 |
|
|
|
37 |
|
38 |
# Update chat history
|
39 |
chat_history.append((message, response))
|
40 |
+
return chat_history
|
|
|
41 |
except Exception as e:
|
42 |
return str(e), chat_history
|
43 |
|