Spaces:
Runtime error
Runtime error
fixed err
Browse files
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=[["
|
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 |
],
|