jpjp9292 commited on
Commit
facffb3
โ€ข
1 Parent(s): 1a2dc2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,16 +11,16 @@ def upscale_image(input_image, radio_input):
11
 
12
  # ์ธํ„ฐํŽ˜์ด์Šค ์„ค๋ช…
13
  DESCRIPTION = """
14
- ์ด๋ฏธ์ง€์˜ ํฌ๊ธฐ์™€ ํ’ˆ์งˆ์„ ํ–ฅ์ƒ์‹œ์ผœ ๋ณด์„ธ์š”!
15
  """
16
 
17
  # ์—…์Šค์ผ€์ผ ๋ ˆ๋ฒจ ์„ ํƒ ๋ผ๋””์˜ค ๋ฒ„ํŠผ
18
- radio_input = gr.Radio(label="์—…์Šค์ผ€์ผ ๋ ˆ๋ฒจ ์„ ํƒ", choices=[2, 4, 6, 8, 10], value=2)
19
 
20
  # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์ •์˜
21
  demo = gr.Interface(
22
  fn=upscale_image,
23
- inputs=[gr.Image(label="์ž…๋ ฅ ์ด๋ฏธ์ง€(Input Image)", type="numpy"), radio_input],
24
  outputs=gr.Image(label="์—…์Šค์ผ€์ผ๋œ ์ด๋ฏธ์ง€(Upscaled Image)"),
25
  title="Image Upscaler",
26
  description=DESCRIPTION
 
11
 
12
  # ์ธํ„ฐํŽ˜์ด์Šค ์„ค๋ช…
13
  DESCRIPTION = """
14
+ ์ด๋ฏธ์ง€์˜ ํฌ๊ธฐ์™€ ํ’ˆ์งˆ์„ ํ–ฅ์ƒ์‹œ์ผœ ๋ณด์„ธ์š”! (you can increase the size and quality of your images)
15
  """
16
 
17
  # ์—…์Šค์ผ€์ผ ๋ ˆ๋ฒจ ์„ ํƒ ๋ผ๋””์˜ค ๋ฒ„ํŠผ
18
+ radio_input = gr.Radio(label="์—…์Šค์ผ€์ผ ๋ ˆ๋ฒจ ์„ ํƒ (Select Upscaling level)", choices=[2, 4, 6, 8, 10], value=2)
19
 
20
  # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์ •์˜
21
  demo = gr.Interface(
22
  fn=upscale_image,
23
+ inputs=[gr.Image(label="์ž…๋ ฅ ์ด๋ฏธ์ง€ (Input Image)", type="numpy"), radio_input],
24
  outputs=gr.Image(label="์—…์Šค์ผ€์ผ๋œ ์ด๋ฏธ์ง€(Upscaled Image)"),
25
  title="Image Upscaler",
26
  description=DESCRIPTION