Yaron Koresh commited on
Commit
fa1075f
·
verified ·
1 Parent(s): b43b190

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -384,10 +384,8 @@ def ui():
384
  # MULTI-LANGUAGE GIF CREATOR
385
  """)
386
  with gr.Row():
387
- global img
388
  img = gr.Image(label="STATIC PHOTO",show_label=True,container=True,type="pil")
389
  with gr.Row():
390
- global prompt
391
  prompt = gr.Textbox(
392
  elem_id="prompt",
393
  placeholder="INCLUDE",
@@ -395,7 +393,6 @@ def ui():
395
  max_lines=1
396
  )
397
  with gr.Row():
398
- global prompt2
399
  prompt2 = gr.Textbox(
400
  elem_id="prompt2",
401
  placeholder="EXCLUDE",
@@ -403,7 +400,6 @@ def ui():
403
  max_lines=1
404
  )
405
  with gr.Row():
406
- global motion
407
  motion = gr.Dropdown(
408
  label='CAMERA',
409
  show_label=True,
@@ -423,10 +419,8 @@ def ui():
423
  interactive=True
424
  )
425
  with gr.Row():
426
- global run_button
427
  run_button = gr.Button("START",elem_classes="btn",scale=0)
428
  with gr.Row():
429
- global result
430
  result = []
431
  result.append(gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
432
  result.append(gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
 
384
  # MULTI-LANGUAGE GIF CREATOR
385
  """)
386
  with gr.Row():
 
387
  img = gr.Image(label="STATIC PHOTO",show_label=True,container=True,type="pil")
388
  with gr.Row():
 
389
  prompt = gr.Textbox(
390
  elem_id="prompt",
391
  placeholder="INCLUDE",
 
393
  max_lines=1
394
  )
395
  with gr.Row():
 
396
  prompt2 = gr.Textbox(
397
  elem_id="prompt2",
398
  placeholder="EXCLUDE",
 
400
  max_lines=1
401
  )
402
  with gr.Row():
 
403
  motion = gr.Dropdown(
404
  label='CAMERA',
405
  show_label=True,
 
419
  interactive=True
420
  )
421
  with gr.Row():
 
422
  run_button = gr.Button("START",elem_classes="btn",scale=0)
423
  with gr.Row():
 
424
  result = []
425
  result.append(gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
426
  result.append(gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))