Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,9 @@ def generate_caption(image_path, question):
|
|
| 48 |
yield full_response
|
| 49 |
|
| 50 |
# 创建Gradio界面
|
| 51 |
-
|
|
|
|
|
|
|
| 52 |
with gr.Row():
|
| 53 |
with gr.Column():
|
| 54 |
image_input = gr.Image(type="filepath", label="上传图片")
|
|
|
|
| 48 |
yield full_response
|
| 49 |
|
| 50 |
# 创建Gradio界面
|
| 51 |
+
title="hunyuan-vision图生文Demo"
|
| 52 |
+
with gr.Blocks(title=title) as demo:
|
| 53 |
+
gr.Markdown(f"# 🖼️ {title}")
|
| 54 |
with gr.Row():
|
| 55 |
with gr.Column():
|
| 56 |
image_input = gr.Image(type="filepath", label="上传图片")
|