Spaces:
Sleeping
Sleeping
longshiine commited on
Commit ·
c0a6e84
1
Parent(s): 656c922
feat: 디자인 수정
Browse filesSigned-off-by: longshiine <dkel03@korea.ac.kr>
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from infra import image_processing_single, image_processing_batch
|
| 3 |
|
| 4 |
-
with gr.Blocks(theme='
|
| 5 |
gr.HTML("""
|
| 6 |
<h1>Product Image Generator</h1>
|
| 7 |
<p>1. 배경 이미지를 업로드해주세요.<p>
|
|
@@ -28,10 +28,10 @@ with gr.Blocks(theme='Zarkel/IBM_Carbon_Theme', title='Image Generator') as demo
|
|
| 28 |
)
|
| 29 |
btn_single = gr.Button("Generate Images")
|
| 30 |
with gr.Tab("Batch Mode"):
|
| 31 |
-
gr.HTML("<div>링크1(엔터) 링크2(엔터) ... 으로 구성된 .txt 파일을 업로드</div>")
|
| 32 |
with gr.Column():
|
| 33 |
-
links = gr.File(label="Image URLs (.txt file)", height=100)
|
| 34 |
product_image_size_batch = gr.Slider(512, 1024, value=800, label="제품 이미지 사이즈")
|
|
|
|
|
|
|
| 35 |
gr.Examples(
|
| 36 |
examples=[["examples/links.txt"]],
|
| 37 |
inputs=links,
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from infra import image_processing_single, image_processing_batch
|
| 3 |
|
| 4 |
+
with gr.Blocks(theme='earneleh/paris', title='Image Generator') as demo:
|
| 5 |
gr.HTML("""
|
| 6 |
<h1>Product Image Generator</h1>
|
| 7 |
<p>1. 배경 이미지를 업로드해주세요.<p>
|
|
|
|
| 28 |
)
|
| 29 |
btn_single = gr.Button("Generate Images")
|
| 30 |
with gr.Tab("Batch Mode"):
|
|
|
|
| 31 |
with gr.Column():
|
|
|
|
| 32 |
product_image_size_batch = gr.Slider(512, 1024, value=800, label="제품 이미지 사이즈")
|
| 33 |
+
gr.HTML("<div>링크1(엔터) 링크2(엔터) ... 으로 구성된 .txt 파일을 업로드</div>")
|
| 34 |
+
links = gr.File(label="Image URLs (.txt file)", height=100)
|
| 35 |
gr.Examples(
|
| 36 |
examples=[["examples/links.txt"]],
|
| 37 |
inputs=links,
|