SysModeler commited on
Commit
9bca490
·
verified ·
1 Parent(s): 00af37b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -161,7 +161,11 @@ def convert_history_to_messages(history):
161
  messages.append({"role": "user", "content": user})
162
  messages.append({"role": "assistant", "content": bot})
163
  return messages
164
-
 
 
 
 
165
  # Main chatbot function with direct function calling
166
  def sysml_chatbot(message, history):
167
  # Convert history to messages format
@@ -253,6 +257,7 @@ def sysml_chatbot(message, history):
253
 
254
  # Gradio UI
255
  with gr.Blocks() as demo:
 
256
  gr.Markdown("## SysModeler Chatbot")
257
 
258
  chatbot = gr.Chatbot(height=600)
 
161
  messages.append({"role": "user", "content": user})
162
  messages.append({"role": "assistant", "content": bot})
163
  return messages
164
+
165
+
166
+ history = []
167
+
168
+
169
  # Main chatbot function with direct function calling
170
  def sysml_chatbot(message, history):
171
  # Convert history to messages format
 
257
 
258
  # Gradio UI
259
  with gr.Blocks() as demo:
260
+
261
  gr.Markdown("## SysModeler Chatbot")
262
 
263
  chatbot = gr.Chatbot(height=600)