Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -55,13 +55,13 @@ base = "emilianJR/epiCRealism"
|
|
55 |
|
56 |
# precision data
|
57 |
|
58 |
-
seq=
|
59 |
fps=20
|
60 |
width=1280
|
61 |
height=720
|
62 |
-
image_steps=
|
63 |
-
video_steps=
|
64 |
-
accu=
|
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[
|
244 |
return name, None
|
245 |
else:
|
246 |
return None, name
|
247 |
|
248 |
def ui():
|
249 |
global result
|
250 |
-
with gr.Blocks(theme=gr.themes.
|
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 |
""")
|