Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,8 +71,8 @@ def upload_file(data_file):
|
|
| 71 |
|
| 72 |
with gr.Blocks() as demo:
|
| 73 |
with gr.Column():
|
| 74 |
-
|
| 75 |
-
|
| 76 |
gr.ChatInterface(
|
| 77 |
yes_man,
|
| 78 |
chatbot=gr.Chatbot(height=300),
|
|
|
|
| 71 |
|
| 72 |
with gr.Blocks() as demo:
|
| 73 |
with gr.Column():
|
| 74 |
+
u = gr.UploadButton("Upload a file", file_count="single")
|
| 75 |
+
u.upload(upload_file, u)
|
| 76 |
gr.ChatInterface(
|
| 77 |
yes_man,
|
| 78 |
chatbot=gr.Chatbot(height=300),
|