AkashKumarave commited on
Commit
013dbb5
·
verified ·
1 Parent(s): 3a53c8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -142,7 +142,7 @@ def transform_face(image_path, prompt):
142
  # ===== GRADIO INTERFACE =====
143
  with gr.Blocks(title="Face Transformer") as app:
144
  gr.Markdown("# 🎭 Exact Face Transformation (97% Match)")
145
- gr.Markdown("Upload ONE face photo and describe your desired style")
146
 
147
  with gr.Row():
148
  with gr.Column():
@@ -154,7 +154,7 @@ with gr.Blocks(title="Face Transformer") as app:
154
  )
155
  prompt_input = gr.Textbox(
156
  label="Style Prompt",
157
- placeholder="e.g. 'anime character', 'oil painting'"
158
  )
159
  generate_btn = gr.Button("Transform", variant="primary")
160
 
@@ -168,9 +168,9 @@ with gr.Blocks(title="Face Transformer") as app:
168
  """)
169
 
170
  with gr.Column():
171
- output_image = gr.Image(label="Transformed Result", height=400)
172
- output_file = gr.File(label="Download")
173
- status_output = gr.Textbox(label="Status")
174
 
175
  generate_btn.click(
176
  fn=lambda img, prompt: transform_face(img, prompt) + (None,),
 
142
  # ===== GRADIO INTERFACE =====
143
  with gr.Blocks(title="Face Transformer") as app:
144
  gr.Markdown("# 🎭 Exact Face Transformation (97% Match)")
145
+ gr.Markdown("Upload ONE face photo for style transformation (97% similarity)")
146
 
147
  with gr.Row():
148
  with gr.Column():
 
154
  )
155
  prompt_input = gr.Textbox(
156
  label="Style Prompt",
157
+ placeholder="e.g. 'anime character', 'watercolor portrait'"
158
  )
159
  generate_btn = gr.Button("Transform", variant="primary")
160
 
 
168
  """)
169
 
170
  with gr.Column():
171
+ output_image = gr.Image(label="Result", interactive=False, height=400)
172
+ output_file = gr.File(label="Download Result")
173
+ status_output = gr.Textbox(label="Status", interactive=False)
174
 
175
  generate_btn.click(
176
  fn=lambda img, prompt: transform_face(img, prompt) + (None,),