JUNGU commited on
Commit
f6a9226
ยท
verified ยท
1 Parent(s): 6838288

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
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
- example_images = [[image_path] for image_path in sample_images]
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=example_images
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