ysharma HF Staff commited on
Commit
aa465a8
·
verified ·
1 Parent(s): 6cc47bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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, fill_height=True, type="messages", examples=[{"text": "Hello", "files": ["https://i.natgeofe.com/n/5f35194b-af37-4f45-a14d-60925b280986/NationalGeographic_2731043_square.jpg"]}], title="Echo Bot", multimodal=True, cache_examples=True)
 
 
 
 
 
 
 
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()