aiqcamp commited on
Commit
fc48392
β€’
1 Parent(s): e0fd797

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -13
app.py CHANGED
@@ -75,18 +75,17 @@ def generate_fashion(prompt, mode, cfg_scale, steps, randomize_seed, seed, width
75
 
76
  with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as app:
77
  gr.Markdown("# 🎭 Fashion AI Studio")
78
- gr.Markdown("AIλ₯Ό μ‚¬μš©ν•˜μ—¬ νŒ¨μ…˜ λͺ¨λΈκ³Ό 의λ₯˜λ₯Ό μƒμ„±ν•΄λ³΄μ„Έμš”")
79
 
80
  with gr.Column():
81
  mode = gr.Radio(
82
- choices=["νŒ¨μ…˜ λͺ¨λΈ 생성", "νŒ¨μ…˜ 의λ₯˜ 생성"],
83
- label="생성 λͺ¨λ“œ",
84
- value="νŒ¨μ…˜ λͺ¨λΈ 생성"
85
  )
86
 
87
  prompt = gr.TextArea(
88
- label="✍️ νŒ¨μ…˜ μ„€λͺ… (ν•œκΈ€ λ˜λŠ” μ˜μ–΄)",
89
- placeholder="νŒ¨μ…˜ λͺ¨λΈμ΄λ‚˜ 의λ₯˜λ₯Ό μ„€λͺ…ν•˜μ„Έμš”...",
90
  lines=3
91
  )
92
 
@@ -95,20 +94,20 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as app:
95
  gr.Examples(
96
  examples=model_examples,
97
  inputs=prompt,
98
- label="νŒ¨μ…˜ λͺ¨λΈ μ˜ˆμ‹œ"
99
  )
100
 
101
  with gr.Column(visible=False) as clothes_examples_container:
102
  gr.Examples(
103
  examples=clothes_examples,
104
  inputs=prompt,
105
- label="νŒ¨μ…˜ 의λ₯˜ μ˜ˆμ‹œ"
106
  )
107
 
108
- result = gr.Image(label="μƒμ„±λœ 이미지")
109
- generate_button = gr.Button("πŸš€ 이미지 생성")
110
 
111
- with gr.Accordion("🎨 κ³ κΈ‰ μ„€μ •", open=False):
112
  with gr.Row():
113
  cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7.0)
114
  steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=30)
@@ -124,8 +123,8 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as app:
124
 
125
  def update_visibility(mode):
126
  return (
127
- gr.update(visible=(mode == "νŒ¨μ…˜ λͺ¨λΈ 생성")),
128
- gr.update(visible=(mode == "νŒ¨μ…˜ 의λ₯˜ 생성"))
129
  )
130
 
131
  mode.change(
 
75
 
76
  with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as app:
77
  gr.Markdown("# 🎭 Fashion AI Studio")
 
78
 
79
  with gr.Column():
80
  mode = gr.Radio(
81
+ choices=["Person", "Clothes"],
82
+ label="Generation",
83
+ value="Fashion Model"
84
  )
85
 
86
  prompt = gr.TextArea(
87
+ label="✍️ Prompt (ν•œκΈ€ 지원)",
88
+ placeholder="Text Input Prompt",
89
  lines=3
90
  )
91
 
 
94
  gr.Examples(
95
  examples=model_examples,
96
  inputs=prompt,
97
+ label="Examples(person)"
98
  )
99
 
100
  with gr.Column(visible=False) as clothes_examples_container:
101
  gr.Examples(
102
  examples=clothes_examples,
103
  inputs=prompt,
104
+ label="Examples(clothes)"
105
  )
106
 
107
+ result = gr.Image(label="Generated Image")
108
+ generate_button = gr.Button("πŸš€ START")
109
 
110
+ with gr.Accordion("🎨 OPTION", open=False):
111
  with gr.Row():
112
  cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7.0)
113
  steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=30)
 
123
 
124
  def update_visibility(mode):
125
  return (
126
+ gr.update(visible=(mode == "Person")),
127
+ gr.update(visible=(mode == "Clothes"))
128
  )
129
 
130
  mode.change(