Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,14 +67,15 @@ def generate_image(text,folder, _ch3, images):
|
|
| 67 |
iface = gr.Interface(
|
| 68 |
fn=generate_image,
|
| 69 |
inputs=[
|
| 70 |
-
gr.Textbox(value = "In the quiet hum of everyday life, the dance of existence unfolds. Time, an ever-flowing river, carries the stories of triumph and heartache. Each fleeting moment is a brushstroke on the canvas of our memories.
|
| 71 |
gr.Dropdown(value = "files/example_data/style-30", choices=glob.glob('files/example_data/*'), label="Choose from provided writer styles"),
|
| 72 |
gr.Markdown("### OR"),
|
| 73 |
gr.File(label="Upload multiple word images", file_count="multiple")
|
| 74 |
],
|
| 75 |
outputs=[#gr.Markdown("## Output"),
|
| 76 |
gr.Image(type="pil", label="Style Image"),
|
| 77 |
-
gr.Image(type="pil", label="Generated Image")]
|
|
|
|
| 78 |
)
|
| 79 |
|
| 80 |
# Launch the Gradio Interface
|
|
|
|
| 67 |
iface = gr.Interface(
|
| 68 |
fn=generate_image,
|
| 69 |
inputs=[
|
| 70 |
+
gr.Textbox(value = "In the quiet hum of everyday life, the dance of existence unfolds. Time, an ever-flowing river, carries the stories of triumph and heartache. Each fleeting moment is a brushstroke on the canvas of our memories.",label = "Input text"),
|
| 71 |
gr.Dropdown(value = "files/example_data/style-30", choices=glob.glob('files/example_data/*'), label="Choose from provided writer styles"),
|
| 72 |
gr.Markdown("### OR"),
|
| 73 |
gr.File(label="Upload multiple word images", file_count="multiple")
|
| 74 |
],
|
| 75 |
outputs=[#gr.Markdown("## Output"),
|
| 76 |
gr.Image(type="pil", label="Style Image"),
|
| 77 |
+
gr.Image(type="pil", label="Generated Image")],
|
| 78 |
+
thumbnail = "Handwriting Synthesis - Mimic anyone's handwriting!"
|
| 79 |
)
|
| 80 |
|
| 81 |
# Launch the Gradio Interface
|