Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,28 +4,29 @@ import gradio as gr
|
|
| 4 |
def run(message, history):
|
| 5 |
return "aaa"
|
| 6 |
|
| 7 |
-
with gr.Blocks() as demo:
|
| 8 |
-
gr.
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
"
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
| 23 |
],
|
| 24 |
-
},
|
| 25 |
],
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
)
|
| 31 |
demo.launch()
|
|
|
|
| 4 |
def run(message, history):
|
| 5 |
return "aaa"
|
| 6 |
|
| 7 |
+
with gr.Blocks() as demo:
|
| 8 |
+
with gr.Row():
|
| 9 |
+
gr.ChatInterface(
|
| 10 |
+
fn=run,
|
| 11 |
+
fill_height=True,
|
| 12 |
+
examples=[
|
| 13 |
+
[
|
| 14 |
+
{
|
| 15 |
+
"text": "Describe the images.",
|
| 16 |
+
"files": [
|
| 17 |
+
"https://i.natgeofe.com/n/4f5aaece-3300-41a4-b2a8-ed2708a0a27c/domestic-dog_thumb_square.jpg",
|
| 18 |
+
"https://i.natgeofe.com/n/4f5aaece-3300-41a4-b2a8-ed2708a0a27c/domestic-dog_thumb_square.jpg",
|
| 19 |
+
"https://i.natgeofe.com/n/4f5aaece-3300-41a4-b2a8-ed2708a0a27c/domestic-dog_thumb_square.jpg",
|
| 20 |
+
"https://i.natgeofe.com/n/4f5aaece-3300-41a4-b2a8-ed2708a0a27c/domestic-dog_thumb_square.jpg",
|
| 21 |
+
"https://i.natgeofe.com/n/4f5aaece-3300-41a4-b2a8-ed2708a0a27c/domestic-dog_thumb_square.jpg",
|
| 22 |
+
"https://i.natgeofe.com/n/4f5aaece-3300-41a4-b2a8-ed2708a0a27c/domestic-dog_thumb_square.jpg",
|
| 23 |
+
"https://i.natgeofe.com/n/4f5aaece-3300-41a4-b2a8-ed2708a0a27c/domestic-dog_thumb_square.jpg",
|
| 24 |
+
],
|
| 25 |
+
},
|
| 26 |
],
|
|
|
|
| 27 |
],
|
| 28 |
+
multimodal=True,
|
| 29 |
+
type="messages",
|
| 30 |
+
cache_examples=False,
|
| 31 |
+
)
|
|
|
|
| 32 |
demo.launch()
|