Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,13 @@ def count_files(message, history):
|
|
7 |
num_files = len(message["files"])
|
8 |
return f"You uploaded {num_files} files"
|
9 |
|
10 |
-
demo = gr.ChatInterface(fn=count_files,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
demo.launch()
|
|
|
7 |
num_files = len(message["files"])
|
8 |
return f"You uploaded {num_files} files"
|
9 |
|
10 |
+
demo = gr.ChatInterface(fn=count_files,
|
11 |
+
fill_height=True,
|
12 |
+
type="messages",
|
13 |
+
#examples=[{"text": "Hello", "files": ["https://i.natgeofe.com/n/5f35194b-af37-4f45-a14d-60925b280986/NationalGeographic_2731043_square.jpg"]}],
|
14 |
+
title="Echo Bot",
|
15 |
+
#multimodal=True,
|
16 |
+
cache_examples=True
|
17 |
+
)
|
18 |
|
19 |
demo.launch()
|