Yaron Koresh commited on
Commit
6ad2af8
·
verified ·
1 Parent(s): 05e6f13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -55,13 +55,13 @@ base = "emilianJR/epiCRealism"
55
 
56
  # precision data
57
 
58
- seq=256
59
  fps=20
60
  width=1280
61
  height=720
62
- image_steps=40
63
- video_steps=20
64
- accu=7
65
 
66
  # ui data
67
 
@@ -235,19 +235,19 @@ def handle_generate(*_inp):
235
 
236
  pipe_out = pipe_generate(*inp)
237
 
238
- name = generate_random_string(12) + ( ".png" if inp[3] == 0 else ".mp4" )
239
  if inp[3] == 0.0:
240
  pipe_out.save(name)
241
  else:
242
  export_to_video(pipe_out,name,fps=fps)
243
- if inp[4] == 0:
244
  return name, None
245
  else:
246
  return None, name
247
 
248
  def ui():
249
  global result
250
- with gr.Blocks(theme=gr.themes.Soft(),css=css,js=js) as demo:
251
  gr.Markdown(f"""
252
  # MULTI-LANGUAGE MP4/PNG CREATOR
253
  """)
 
55
 
56
  # precision data
57
 
58
+ seq=1024
59
  fps=20
60
  width=1280
61
  height=720
62
+ image_steps=50
63
+ video_steps=30
64
+ accu=4.5
65
 
66
  # ui data
67
 
 
235
 
236
  pipe_out = pipe_generate(*inp)
237
 
238
+ name = generate_random_string(12) + ( ".png" if inp[3] == 0.0 else ".mp4" )
239
  if inp[3] == 0.0:
240
  pipe_out.save(name)
241
  else:
242
  export_to_video(pipe_out,name,fps=fps)
243
+ if inp[3] == 0.0:
244
  return name, None
245
  else:
246
  return None, name
247
 
248
  def ui():
249
  global result
250
+ with gr.Blocks(theme=gr.themes.Citrus(),css=css,js=js) as demo:
251
  gr.Markdown(f"""
252
  # MULTI-LANGUAGE MP4/PNG CREATOR
253
  """)