macadeliccc commited on
Commit
352fcc4
·
1 Parent(s): 395f92e
Files changed (1) hide show
  1. app.py +2 -3
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, True) # User's message
67
- server_response = (chat_with_ochat(input_message), False) # Server's response
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