seawolf2357 commited on
Commit
50d23d7
ยท
verified ยท
1 Parent(s): 3377e03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -39,5 +39,20 @@ iface = gr.Interface(
39
  description="์ด๋ฏธ์ง€๋ฅผ ์—…๋กœ๋“œํ•˜๋ฉด, ์‚ฌ๋ฌผ์„ ์ธ์‹ํ•˜๊ณ  ํ•ด๋‹นํ•˜๋Š” ์Œ์„ฑ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค."
40
  )
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  # ์ธํ„ฐํŽ˜์ด์Šค ์‹คํ–‰
43
  iface.launch()
 
39
  description="์ด๋ฏธ์ง€๋ฅผ ์—…๋กœ๋“œํ•˜๋ฉด, ์‚ฌ๋ฌผ์„ ์ธ์‹ํ•˜๊ณ  ํ•ด๋‹นํ•˜๋Š” ์Œ์„ฑ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค."
40
  )
41
 
42
+
43
+ examples = [["./dog.png"]]
44
+ gr.Examples(
45
+ examples = examples,
46
+ inputs=[image_input],
47
+ outputs=[uploaded_image],
48
+ fn=infer,
49
+ cache_examples=True
50
+ )
51
+ run_button.click(fn=infer,
52
+ inputs=[image_input],
53
+ outputs=[uploaded_image])
54
+
55
+ demo.launch()
56
+
57
  # ์ธํ„ฐํŽ˜์ด์Šค ์‹คํ–‰
58
  iface.launch()