Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -172,7 +172,17 @@ with gr.Blocks(css=css, theme="origin") as demo:
|
|
172 |
# Right column: model output
|
173 |
with gr.Column(scale=1):
|
174 |
output_text = gr.Textbox(label="Model Output", elem_id="output_text")
|
175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
submit_btn.click(internvl_inference, [input_image, text_input], [output_text])
|
177 |
|
178 |
if __name__ == "__main__":
|
|
|
172 |
# Right column: model output
|
173 |
with gr.Column(scale=1):
|
174 |
output_text = gr.Textbox(label="Model Output", elem_id="output_text")
|
175 |
+
|
176 |
+
# ๐ฝ ์์ ์ถ๊ฐ
|
177 |
+
gr.Examples(
|
178 |
+
examples=[["example.webp", "explain this image"]],
|
179 |
+
inputs=[input_image, text_input],
|
180 |
+
outputs=output_text,
|
181 |
+
fn=internvl_inference, # ํด๋ฆญ ์ ๋ฐ๋ก ์คํํ๋ ค๋ฉด ์ง์
|
182 |
+
cache_examples=True, # ๊ฒฐ๊ณผ ์บ์(์ ํ)
|
183 |
+
label="Try an example" # ํ๊ธฐ๋ช
(์ ํ)
|
184 |
+
)
|
185 |
+
|
186 |
submit_btn.click(internvl_inference, [input_image, text_input], [output_text])
|
187 |
|
188 |
if __name__ == "__main__":
|