chohj06ms commited on
Commit
eb5f9ae
1 Parent(s): 726afd0

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -3
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.Image(label="output", interactive=False, sources=['upload', 'clipboard'], type="pil", visible=True, scale=10)
36
- event_generate.click(fn=generate.event, inputs=[event_img, event_radio, event_txt, event_position, event_font], outputs=event_output)
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"):