amitagh commited on
Commit
88ac13c
·
verified ·
1 Parent(s): a07d9df
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ def add_text(history, text):
22
  global messages #message[list] is defined globally
23
  history = history + [(text,'')]
24
  messages = messages + [{"role":'user', 'content': text}]
25
- return history, ""
26
 
27
  def generate_response(history, text):
28
  global messages, msg_count
@@ -61,7 +61,7 @@ with gr.Blocks() as demo:
61
  ) #.style(container=False)
62
  gr.Examples(
63
  label="Question examples",
64
- examples=[["What is ultrasound?"],
65
  ["What is cancer?"],
66
  ["What is treatment for cancer?"],
67
  ],
 
22
  global messages #message[list] is defined globally
23
  history = history + [(text,'')]
24
  messages = messages + [{"role":'user', 'content': text}]
25
+ return history, text
26
 
27
  def generate_response(history, text):
28
  global messages, msg_count
 
61
  ) #.style(container=False)
62
  gr.Examples(
63
  label="Question examples",
64
+ examples=[["Why do we get fever?"],
65
  ["What is cancer?"],
66
  ["What is treatment for cancer?"],
67
  ],