Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -289,8 +289,8 @@ import gradio as gr
|
|
| 289 |
def status_check():
|
| 290 |
return "Processing is complete! Check the logs for details."
|
| 291 |
|
| 292 |
-
if __name__ ==
|
| 293 |
-
|
| 294 |
IN = 'input_videos'
|
| 295 |
OUT = 'output_results'
|
| 296 |
|
|
@@ -307,14 +307,20 @@ if __name__ == '__main__':
|
|
| 307 |
for v in videos:
|
| 308 |
process(v, OUT)
|
| 309 |
|
| 310 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 311 |
demo = gr.Interface(
|
| 312 |
fn=lambda: "Processing Complete!",
|
| 313 |
inputs=[],
|
| 314 |
outputs=gr.FileExplorer(root_dir="output_results", label="Click to Download Files"),
|
| 315 |
title="Pose Normalization Results"
|
| 316 |
)
|
|
|
|
| 317 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 318 |
|
| 319 |
|
| 320 |
|
|
|
|
|
|
| 289 |
def status_check():
|
| 290 |
return "Processing is complete! Check the logs for details."
|
| 291 |
|
| 292 |
+
if __name__ == "__main__":
|
| 293 |
+
# Ensure all these lines are aligned under the 'i' of 'if'
|
| 294 |
IN = 'input_videos'
|
| 295 |
OUT = 'output_results'
|
| 296 |
|
|
|
|
| 307 |
for v in videos:
|
| 308 |
process(v, OUT)
|
| 309 |
|
| 310 |
+
# --- FIX THIS LINE ---
|
| 311 |
+
print('\nALL DONE')
|
| 312 |
+
|
| 313 |
+
# --- AND THESE LINES ---
|
| 314 |
+
import gradio as gr
|
| 315 |
demo = gr.Interface(
|
| 316 |
fn=lambda: "Processing Complete!",
|
| 317 |
inputs=[],
|
| 318 |
outputs=gr.FileExplorer(root_dir="output_results", label="Click to Download Files"),
|
| 319 |
title="Pose Normalization Results"
|
| 320 |
)
|
| 321 |
+
|
| 322 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
+
|