Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
352fcc4
1
Parent(s):
395f92e
test
Browse files
app.py
CHANGED
@@ -25,7 +25,6 @@ def start_ochat_server():
|
|
25 |
except Exception as e:
|
26 |
return f"Failed to start ochat server: {e}"
|
27 |
|
28 |
-
|
29 |
start_ochat_server()
|
30 |
|
31 |
# Function to send a message to the ochat server and get a response
|
@@ -63,8 +62,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
63 |
|
64 |
def update_output(input_message):
|
65 |
global chat_history
|
66 |
-
user_message = (input_message
|
67 |
-
server_response = (chat_with_ochat(input_message)
|
68 |
chat_history.extend([user_message, server_response])
|
69 |
return chat_history
|
70 |
|
|
|
25 |
except Exception as e:
|
26 |
return f"Failed to start ochat server: {e}"
|
27 |
|
|
|
28 |
start_ochat_server()
|
29 |
|
30 |
# Function to send a message to the ochat server and get a response
|
|
|
62 |
|
63 |
def update_output(input_message):
|
64 |
global chat_history
|
65 |
+
user_message = (input_message) # User's message
|
66 |
+
server_response = (chat_with_ochat(input_message)) # Server's response
|
67 |
chat_history.extend([user_message, server_response])
|
68 |
return chat_history
|
69 |
|