Spaces:
Running
on
Zero
Running
on
Zero
root
commited on
Commit
•
b1ee704
1
Parent(s):
5fb30d8
add examples
Browse files
app.py
CHANGED
@@ -120,8 +120,11 @@ with gr.Blocks(title=model_name.split('/')[-1]) as demo:
|
|
120 |
with gr.Column(scale=3):
|
121 |
image_input = gr.Image(label="image", height=350, type="pil")
|
122 |
gr.Examples(
|
123 |
-
|
124 |
-
[f"{cur_dir}/examples/
|
|
|
|
|
|
|
125 |
inputs=[image_input, text_input]
|
126 |
)
|
127 |
with gr.Column(scale=7):
|
|
|
120 |
with gr.Column(scale=3):
|
121 |
image_input = gr.Image(label="image", height=350, type="pil")
|
122 |
gr.Examples(
|
123 |
+
examples=[
|
124 |
+
[f"{cur_dir}/examples/case0.png", "Find the area of the shaded region."],
|
125 |
+
[f"{cur_dir}/examples/case1.png", "explain this model to me."],
|
126 |
+
[f"{cur_dir}/examples/case2.png", "What is net profit margin as a percentage of total revenue?"],
|
127 |
+
],
|
128 |
inputs=[image_input, text_input]
|
129 |
)
|
130 |
with gr.Column(scale=7):
|