Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -52,14 +52,9 @@ def extract_and_summarize(image):
|
|
52 |
|
53 |
# ์ํ ๋ฌธ์ ์ด๋ฏธ์ง ์ถ๊ฐ
|
54 |
|
55 |
-
sample_images = [
|
56 |
-
"/sample1.png",
|
57 |
-
"/sample2.png",
|
58 |
-
"/sample3.png"
|
59 |
-
]
|
60 |
|
61 |
-
|
62 |
-
|
63 |
|
64 |
# Define Gradio interface
|
65 |
iface = gr.Interface(
|
@@ -68,7 +63,7 @@ iface = gr.Interface(
|
|
68 |
outputs=gr.Textbox(label="Summarized Text"),
|
69 |
title="๊ณต๋ฌธ์ ์์ฝ ์์ฑ๊ธฐ",
|
70 |
description="๋ฌธ์์ ํ๋ฉด์ ์บก์ณํ์ฌ ์
๋ก๋ํ๋ฉด ์์ฝํด์ค๋๋ค.",
|
71 |
-
examples=
|
72 |
)
|
73 |
|
74 |
# Launch the interface
|
|
|
52 |
|
53 |
# ์ํ ๋ฌธ์ ์ด๋ฏธ์ง ์ถ๊ฐ
|
54 |
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
+
examples = ["./sample1.png", "./sample2.png", "./sample3.png"]
|
57 |
+
|
58 |
|
59 |
# Define Gradio interface
|
60 |
iface = gr.Interface(
|
|
|
63 |
outputs=gr.Textbox(label="Summarized Text"),
|
64 |
title="๊ณต๋ฌธ์ ์์ฝ ์์ฑ๊ธฐ",
|
65 |
description="๋ฌธ์์ ํ๋ฉด์ ์บก์ณํ์ฌ ์
๋ก๋ํ๋ฉด ์์ฝํด์ค๋๋ค.",
|
66 |
+
examples=examples
|
67 |
)
|
68 |
|
69 |
# Launch the interface
|