Spaces:
Sleeping
Sleeping
Chirag commited on
Commit ·
8bb216d
1
Parent(s): e1c7990
app.py
CHANGED
|
@@ -43,7 +43,14 @@ with gr.Blocks() as demo:
|
|
| 43 |
gr.Markdown("# 🧙 Anime Me! Upload your photo or use your camera")
|
| 44 |
|
| 45 |
with gr.Row():
|
| 46 |
-
image_input = gr.Image(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
style_selector = gr.Dropdown(choices=list(styles.keys()), value="Classic Anime", label="Select Style")
|
| 48 |
|
| 49 |
prompt_input = gr.Textbox(lines=1, label="Prompt (Optional, you can use example prompts)")
|
|
|
|
| 43 |
gr.Markdown("# 🧙 Anime Me! Upload your photo or use your camera")
|
| 44 |
|
| 45 |
with gr.Row():
|
| 46 |
+
image_input = gr.Image(
|
| 47 |
+
label="Upload or Capture Photo",
|
| 48 |
+
type="pil",
|
| 49 |
+
image_mode="RGB",
|
| 50 |
+
sources=["upload", "webcam"],
|
| 51 |
+
show_download_button=True
|
| 52 |
+
)
|
| 53 |
+
|
| 54 |
style_selector = gr.Dropdown(choices=list(styles.keys()), value="Classic Anime", label="Select Style")
|
| 55 |
|
| 56 |
prompt_input = gr.Textbox(lines=1, label="Prompt (Optional, you can use example prompts)")
|