Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -29,11 +29,10 @@ with gr.Blocks(theme=gr.themes.Soft(), js=js_func) as demo:
|
|
29 |
event_radio = gr.Radio(["White", "Black"], value="White", interactive=True, label="Font")
|
30 |
event_txt = gr.Textbox(label="Girls Never ____", placeholder="Die")
|
31 |
event_position = gr.Slider(label="Y position", maximum=100, minimum=0)
|
32 |
-
event_font = gr.Radio(choices=[1,2,3,4], value=1)
|
33 |
event_generate = gr.Button(value="Generate")
|
34 |
with gr.Column():
|
35 |
-
event_output = gr.
|
36 |
-
event_generate.click(fn=generate.event, inputs=[event_img, event_radio, event_txt, event_position
|
37 |
|
38 |
|
39 |
with gr.Tab("Front"):
|
|
|
29 |
event_radio = gr.Radio(["White", "Black"], value="White", interactive=True, label="Font")
|
30 |
event_txt = gr.Textbox(label="Girls Never ____", placeholder="Die")
|
31 |
event_position = gr.Slider(label="Y position", maximum=100, minimum=0)
|
|
|
32 |
event_generate = gr.Button(value="Generate")
|
33 |
with gr.Column():
|
34 |
+
event_output = gr.Gallery(label="output", interactive=False, type="pil", visible=True, scale=10)
|
35 |
+
event_generate.click(fn=generate.event, inputs=[event_img, event_radio, event_txt, event_position], outputs=event_output)
|
36 |
|
37 |
|
38 |
with gr.Tab("Front"):
|