Rename text2image.py to image2text.py
Browse files
text2image.py → image2text.py
RENAMED
|
@@ -20,7 +20,7 @@ def explain_image(image: Image.Image):
|
|
| 20 |
|
| 21 |
# Gradio 介面
|
| 22 |
with gr.Blocks() as demo:
|
| 23 |
-
gr.Markdown("## 🧠 Gemini 圖片解釋器(圖 ➜ 文)")
|
| 24 |
image_input = gr.Image(type="pil", label="上傳圖片")
|
| 25 |
explain_button = gr.Button("解釋圖片")
|
| 26 |
output_text = gr.Textbox(label="圖片說明", lines=5)
|
|
|
|
| 20 |
|
| 21 |
# Gradio 介面
|
| 22 |
with gr.Blocks() as demo:
|
| 23 |
+
gr.Markdown("## 🧠B09000000 黃老師 Gemini 圖片解釋器(圖 ➜ 文)")
|
| 24 |
image_input = gr.Image(type="pil", label="上傳圖片")
|
| 25 |
explain_button = gr.Button("解釋圖片")
|
| 26 |
output_text = gr.Textbox(label="圖片說明", lines=5)
|