Siyun He commited on
Commit
27ea583
Β·
1 Parent(s): c721db7

improve gradio

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -308,12 +308,14 @@ def webcam_input(frame, transform, lip_color):
308
  frame = change_lip_color(frame, lip_color)
309
  return frame, face_shape, glass_shape
310
 
 
 
311
  # Gradio Interface
312
  with gr.Blocks(theme=gr.themes.Soft(primary_hue="purple", secondary_hue="blue")) as demo:
313
  gr.Markdown("<h1 style='text-align: center; font-weight: bold;'>πŸ€“ Glasses Virtual Try-On πŸ•ΆοΈπŸ‘“</h1>")
314
  with gr.Column(elem_classes=["my-column"]):
315
  with gr.Group(elem_classes=["my-group"]):
316
- gr.Markdown("You can only apply one filter at a time, either the transform filter or the lip color filter.")
317
  transform = gr.Dropdown(choices=["cartoon", "edges", "sepia", "negative", "sketch", "blur", "none"],
318
  value="none", label="Select Filter")
319
  lip_color = gr.Dropdown(choices=["classic_red", "deep_red", "cherry_red", "rose_red", "wine_red", "brick_red", "coral_red", "berry_red", "ruby_red", "crimson_red", "none"],
 
308
  frame = change_lip_color(frame, lip_color)
309
  return frame, face_shape, glass_shape
310
 
311
+
312
+
313
  # Gradio Interface
314
  with gr.Blocks(theme=gr.themes.Soft(primary_hue="purple", secondary_hue="blue")) as demo:
315
  gr.Markdown("<h1 style='text-align: center; font-weight: bold;'>πŸ€“ Glasses Virtual Try-On πŸ•ΆοΈπŸ‘“</h1>")
316
  with gr.Column(elem_classes=["my-column"]):
317
  with gr.Group(elem_classes=["my-group"]):
318
+ gr.Markdown("<h1 style='text-align: center; color: blue;'>You can only apply one filter at a time, either the transform filter or the lip color filter.</h1>")
319
  transform = gr.Dropdown(choices=["cartoon", "edges", "sepia", "negative", "sketch", "blur", "none"],
320
  value="none", label="Select Filter")
321
  lip_color = gr.Dropdown(choices=["classic_red", "deep_red", "cherry_red", "rose_red", "wine_red", "brick_red", "coral_red", "berry_red", "ruby_red", "crimson_red", "none"],