Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import os
|
2 |
-
from models import create_model
|
3 |
from PIL import Image
|
4 |
from imageio import imwrite
|
5 |
import gradio as gr
|
@@ -44,8 +43,8 @@ def pipeline(img, vivid):
|
|
44 |
return 'filename.png'
|
45 |
|
46 |
|
47 |
-
description = "์ ๋๋ฉ์ด์
ํ ์ด๋ฏธ์ง๋ฅผ ๋ณผ์งค์ฝ ์คํ์ผ๋ก ๋ฐ๊พธ๋
|
48 |
|
49 |
-
examples=[['
|
50 |
gr.Interface(pipeline, [gr.inputs.Image(type="pil"),gr.inputs.Checkbox(default=False, label="ํ์ง ๊ฐ์ ")], gr.outputs.Image(type="file"),description=description,allow_flagging=False,examples=examples,allow_screenshot=False,enable_queue=False).launch()
|
51 |
|
|
|
1 |
import os
|
|
|
2 |
from PIL import Image
|
3 |
from imageio import imwrite
|
4 |
import gradio as gr
|
|
|
43 |
return 'filename.png'
|
44 |
|
45 |
|
46 |
+
description = "์ ๋๋ฉ์ด์
ํ ์ด๋ฏธ์ง๋ฅผ ๋ณผ์งค์ฝ ์คํ์ผ๋ก ๋ฐ๊พธ๋ Pix2pixHD๋ชจ๋ธ์
๋๋ค. ์ด๋ฏธ์ง ์
๋ก๋ ํ ๋์ค๋ ์ฐ์ธก ์๋จ์ ์ฐํ๋ชจ์ ํด๋ฆญํด์ ์ผ๊ตด ์ชฝ์ ์ ์ฌ๊ฐํ์ผ๋ก ์๋ฅด๊ณ submit ํ๋ฉด ๋ฉ๋๋ค. ์ถ๋ ฅ ์ด๋ฏธ์ง๊ฐ ํ๋ฆฌ๊ฒ ๋์ค๋ฉด ํ์ง๊ฐ์ ์ฒดํฌํ์๋ฉด ๋ฉ๋๋ค."
|
47 |
|
48 |
+
examples=[['siroko_out.png',False]]
|
49 |
gr.Interface(pipeline, [gr.inputs.Image(type="pil"),gr.inputs.Checkbox(default=False, label="ํ์ง ๊ฐ์ ")], gr.outputs.Image(type="file"),description=description,allow_flagging=False,examples=examples,allow_screenshot=False,enable_queue=False).launch()
|
50 |
|