Spaces:
Running
Running
Commit ·
b56c42a
1
Parent(s): ed7eb3f
fix bug: cache_examples is True by default in huggingface
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from videopose_PSTMO import gr_video2mc
|
|
| 3 |
import os
|
| 4 |
|
| 5 |
|
| 6 |
-
def Video2MC(video, progress
|
| 7 |
|
| 8 |
progress(1.0, desc="Step 0: Starting")
|
| 9 |
output_path, output_video = gr_video2mc(video, progress)
|
|
@@ -16,6 +16,7 @@ iface = gr.Interface(fn=Video2MC,
|
|
| 16 |
outputs=["file", "text", gr.Video()],
|
| 17 |
examples=[os.path.join(os.path.dirname(__file__),
|
| 18 |
"input_videos/kun_test_5sec.mp4")],
|
|
|
|
| 19 |
)
|
| 20 |
|
| 21 |
iface.queue(concurrency_count=10).launch()
|
|
|
|
| 3 |
import os
|
| 4 |
|
| 5 |
|
| 6 |
+
def Video2MC(video, progress=gr.Progress(track_tqdm=True)):
|
| 7 |
|
| 8 |
progress(1.0, desc="Step 0: Starting")
|
| 9 |
output_path, output_video = gr_video2mc(video, progress)
|
|
|
|
| 16 |
outputs=["file", "text", gr.Video()],
|
| 17 |
examples=[os.path.join(os.path.dirname(__file__),
|
| 18 |
"input_videos/kun_test_5sec.mp4")],
|
| 19 |
+
cache_examples=False,
|
| 20 |
)
|
| 21 |
|
| 22 |
iface.queue(concurrency_count=10).launch()
|