adough commited on
Commit
aedbbb3
·
verified ·
1 Parent(s): b958906

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ def determine_cycle_phase(start_date_str):
75
 
76
  def respond(message, history):
77
  if not isinstance(history, list):
78
- history = []
79
 
80
  messages = [{"role": "system", "content": cycle_ai_prompt}]
81
  for entry in history:
@@ -183,7 +183,7 @@ with gr.Blocks(
183
  gr.Markdown("_After the greeting appears, start chatting →_")
184
 
185
  with gr.Column(scale=2):
186
- chatbot = gr.Chatbot(label="Chat", type="messages")
187
  user_text = gr.Textbox(placeholder="Ask me something…", label="")
188
  with gr.Row():
189
  workout_btn = gr.Button("Prompt: Workouts")
 
75
 
76
  def respond(message, history):
77
  if not isinstance(history, list):
78
+ history = [("hi", "Hello! How can I help?"), ("Can you help?", "Of course!")]
79
 
80
  messages = [{"role": "system", "content": cycle_ai_prompt}]
81
  for entry in history:
 
183
  gr.Markdown("_After the greeting appears, start chatting →_")
184
 
185
  with gr.Column(scale=2):
186
+ chatbot = gr.Chatbot(label="Chat", type="text")
187
  user_text = gr.Textbox(placeholder="Ask me something…", label="")
188
  with gr.Row():
189
  workout_btn = gr.Button("Prompt: Workouts")