Skip to content

Commit dac0ac2

Browse files
committed
Upgrade image analysis app to Gradio v5
1 parent 4d42bb5 commit dac0ac2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web-apps/image-analysis/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def analyze_image(image_url, prompt):
115115
gr.Textbox(label="Prompt/Question", elem_id="prompt", scale=2),
116116
],
117117
outputs=[gr.Image(label="Image"), gr.Textbox(label="Results")],
118-
allow_flagging='never',
118+
flagging_mode='never',
119119
title=settings.page_title,
120120
description=settings.page_description,
121121
examples=[[ex.image_url, ex.prompt] for ex in settings.examples],

web-apps/image-analysis/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pillow
22
requests
3-
gradio<5
3+
gradio<6
44
gradio_client
55
pydantic
66
structlog

0 commit comments

Comments
 (0)