Spaces:
Build error
Build error
AlshimaaGamalAlsaied
commited on
Commit
·
731c2c3
1
Parent(s):
483bdd9
update
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import subprocess
|
|
| 5 |
import tempfile
|
| 6 |
import time
|
| 7 |
from pathlib import Path
|
| 8 |
-
|
| 9 |
import cv2
|
| 10 |
import gradio as gr
|
| 11 |
|
|
@@ -116,7 +116,7 @@ image_interface = gr.Interface(
|
|
| 116 |
video_interface = gr.Interface(
|
| 117 |
fn=video_fn,
|
| 118 |
inputs=[
|
| 119 |
-
gr.Video(type="
|
| 120 |
gr.inputs.Dropdown(
|
| 121 |
choices=[
|
| 122 |
"alshimaa/model_baseline",
|
|
@@ -127,7 +127,7 @@ video_interface = gr.Interface(
|
|
| 127 |
label="Model",
|
| 128 |
),
|
| 129 |
],
|
| 130 |
-
outputs=gr.Video(type=
|
| 131 |
# examples=[
|
| 132 |
# ["video.mp4", 0.25, 0.45, 0, 2],
|
| 133 |
|
|
|
|
| 5 |
import tempfile
|
| 6 |
import time
|
| 7 |
from pathlib import Path
|
| 8 |
+
import uuid
|
| 9 |
import cv2
|
| 10 |
import gradio as gr
|
| 11 |
|
|
|
|
| 116 |
video_interface = gr.Interface(
|
| 117 |
fn=video_fn,
|
| 118 |
inputs=[
|
| 119 |
+
gr.inputs.Video(source = "upload", type = "mp4", label = "Input Video"),
|
| 120 |
gr.inputs.Dropdown(
|
| 121 |
choices=[
|
| 122 |
"alshimaa/model_baseline",
|
|
|
|
| 127 |
label="Model",
|
| 128 |
),
|
| 129 |
],
|
| 130 |
+
outputs=gr.outputs.Video(type = "mp4", label = "Output Video"),
|
| 131 |
# examples=[
|
| 132 |
# ["video.mp4", 0.25, 0.45, 0, 2],
|
| 133 |
|