Create app.py
Browse files
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()
|