hysts HF Staff commited on
Commit
abe8613
·
verified ·
1 Parent(s): 2358235

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def echo(message, history):
4
+ return f"Echo: {message['text']}"
5
+
6
+ gr.ChatInterface(
7
+ fn=echo,
8
+ textbox=gr.MultimodalTextbox(file_count="multiple", autofocus=True),
9
+ multimodal=True,
10
+ examples=[{"text": "What is the capital of France?", "files": []}],
11
+ run_examples_on_click=False,
12
+ cache_examples=False,
13
+ ).launch()