Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
|
|
|
|
1 |
import os
|
2 |
|
3 |
os.environ['HF_HOME'] = os.path.join(os.path.dirname(__file__), 'hf_download')
|
4 |
result_dir = os.path.join('./', 'results')
|
5 |
os.makedirs(result_dir, exist_ok=True)
|
6 |
|
7 |
-
|
8 |
import functools
|
9 |
import os
|
10 |
import random
|
@@ -223,7 +224,23 @@ def process_video(keyframes, prompt, steps, cfg, fps, seed, progress=gr.Progress
|
|
223 |
|
224 |
block = gr.Blocks().queue()
|
225 |
with block:
|
226 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
|
228 |
with gr.Accordion(label='Step 1: Upload Image and Generate Prompt', open=True):
|
229 |
with gr.Row():
|
|
|
1 |
+
# https://huggingface.co/spaces/MohamedRashad/PaintsUndo/blob/main/app.py
|
2 |
+
|
3 |
import os
|
4 |
|
5 |
os.environ['HF_HOME'] = os.path.join(os.path.dirname(__file__), 'hf_download')
|
6 |
result_dir = os.path.join('./', 'results')
|
7 |
os.makedirs(result_dir, exist_ok=True)
|
8 |
|
|
|
9 |
import functools
|
10 |
import os
|
11 |
import random
|
|
|
224 |
|
225 |
block = gr.Blocks().queue()
|
226 |
with block:
|
227 |
+
with gr.Column():
|
228 |
+
gr.HTML(
|
229 |
+
"""
|
230 |
+
<h1 style='text-align: center'>
|
231 |
+
Paints-UNDO: Understand Human Behavior to Align True Needs
|
232 |
+
</h1>
|
233 |
+
"""
|
234 |
+
)
|
235 |
+
gr.HTML(
|
236 |
+
"""
|
237 |
+
<h3 style='text-align: center'>
|
238 |
+
Follow me for more!
|
239 |
+
<a href='https://twitter.com/kadirnar_ai' target='_blank'>Twitter</a> | <a href='https://github.com/kadirnar' target='_blank'>Github</a> | <a href='https://www.linkedin.com/in/kadir-nar/' target='_blank'>Linkedin</a>
|
240 |
+
</h3>
|
241 |
+
"""
|
242 |
+
)
|
243 |
+
|
244 |
|
245 |
with gr.Accordion(label='Step 1: Upload Image and Generate Prompt', open=True):
|
246 |
with gr.Row():
|