Spaces:
Build error
Build error
Commit
·
c2a02de
1
Parent(s):
80a1e4b
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,8 @@ def predict(input, history=None):
|
|
| 16 |
with gr.Blocks() as demo:
|
| 17 |
chatbot = gr.Chatbot()
|
| 18 |
state = model.emptyState
|
| 19 |
-
state = model.loadContext(newctx="User: ")
|
| 20 |
-
|
| 21 |
with gr.Row():
|
| 22 |
txt = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
|
| 23 |
|
|
|
|
| 16 |
with gr.Blocks() as demo:
|
| 17 |
chatbot = gr.Chatbot()
|
| 18 |
state = model.emptyState
|
| 19 |
+
ctx, state = model.loadContext(newctx="User: ")
|
| 20 |
+
state = gr.State(state)
|
| 21 |
with gr.Row():
|
| 22 |
txt = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
|
| 23 |
|