Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ def main(url, clip_type, parameters, progress=gr.Progress()):
|
|
| 109 |
client.close()
|
| 110 |
|
| 111 |
progress(1.0, desc="Video editing complete")
|
| 112 |
-
yield "درحال پردازش ویدئو",
|
| 113 |
client = Client("SPACERUNNER99/video_edite")
|
| 114 |
output_video_file = client.predict(
|
| 115 |
srt=handle_file(subtitle_file),
|
|
@@ -120,8 +120,9 @@ def main(url, clip_type, parameters, progress=gr.Progress()):
|
|
| 120 |
api_name="/video_edit"
|
| 121 |
)
|
| 122 |
client.close()
|
| 123 |
-
|
| 124 |
-
|
|
|
|
| 125 |
with gr.Blocks() as demo:
|
| 126 |
gr.Markdown("Start typing below and then click **Run** to see the progress and final output.")
|
| 127 |
with gr.Column():
|
|
|
|
| 109 |
client.close()
|
| 110 |
|
| 111 |
progress(1.0, desc="Video editing complete")
|
| 112 |
+
yield "درحال پردازش ویدئو", None
|
| 113 |
client = Client("SPACERUNNER99/video_edite")
|
| 114 |
output_video_file = client.predict(
|
| 115 |
srt=handle_file(subtitle_file),
|
|
|
|
| 120 |
api_name="/video_edit"
|
| 121 |
)
|
| 122 |
client.close()
|
| 123 |
+
yield "درحال پردازش ویدئو", output_video_file
|
| 124 |
+
time.sleep(3)
|
| 125 |
+
return output_video_file
|
| 126 |
with gr.Blocks() as demo:
|
| 127 |
gr.Markdown("Start typing below and then click **Run** to see the progress and final output.")
|
| 128 |
with gr.Column():
|