Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,8 @@ def chat(message, history):
|
|
88 |
basedir = os.path.dirname(__file__)
|
89 |
savePath = outputfileName
|
90 |
|
91 |
-
return history, df, outputfileName
|
|
|
92 |
|
93 |
with gr.Blocks() as demo:
|
94 |
gr.Markdown("<h1><center>🍰Gradio chatbot backed by memory in a dataset repository.🎨</center></h1>")
|
@@ -106,6 +107,7 @@ with gr.Blocks() as demo:
|
|
106 |
df1 = gr.Dataframe(wrap=True, max_rows=1000, overflow_row_behaviour= "paginate")
|
107 |
|
108 |
|
109 |
-
b1.click(fn=chat, inputs=[t1, s1], outputs=[s1, df1, file])
|
|
|
110 |
|
111 |
demo.launch(debug=True, show_error=True)
|
|
|
88 |
basedir = os.path.dirname(__file__)
|
89 |
savePath = outputfileName
|
90 |
|
91 |
+
#return history, df, outputfileName
|
92 |
+
return history, df
|
93 |
|
94 |
with gr.Blocks() as demo:
|
95 |
gr.Markdown("<h1><center>🍰Gradio chatbot backed by memory in a dataset repository.🎨</center></h1>")
|
|
|
107 |
df1 = gr.Dataframe(wrap=True, max_rows=1000, overflow_row_behaviour= "paginate")
|
108 |
|
109 |
|
110 |
+
#b1.click(fn=chat, inputs=[t1, s1], outputs=[s1, df1, file])
|
111 |
+
b1.click(fn=chat, inputs=[t1, s1], outputs=[s1, df1])
|
112 |
|
113 |
demo.launch(debug=True, show_error=True)
|