Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,10 +52,10 @@ DEPTH_MODEL_MAP = {
|
|
| 52 |
}
|
| 53 |
|
| 54 |
# Resource Limits
|
| 55 |
-
MAX_IMAGE_MB =
|
| 56 |
MAX_IMAGE_RES = (1920, 1080)
|
| 57 |
MAX_VIDEO_MB = 50
|
| 58 |
-
MAX_VIDEO_DURATION =
|
| 59 |
|
| 60 |
|
| 61 |
@spaces.GPU
|
|
@@ -124,7 +124,8 @@ with gr.Blocks() as demo:
|
|
| 124 |
media_upload = gr.File(
|
| 125 |
label="Upload Images (1–5) or 1 Video",
|
| 126 |
file_types=["image", ".mp4", ".mov", ".avi"],
|
| 127 |
-
file_count="multiple"
|
|
|
|
| 128 |
)
|
| 129 |
|
| 130 |
# URL input
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
# Resource Limits
|
| 55 |
+
MAX_IMAGE_MB = 15
|
| 56 |
MAX_IMAGE_RES = (1920, 1080)
|
| 57 |
MAX_VIDEO_MB = 50
|
| 58 |
+
MAX_VIDEO_DURATION = 15 # seconds
|
| 59 |
|
| 60 |
|
| 61 |
@spaces.GPU
|
|
|
|
| 124 |
media_upload = gr.File(
|
| 125 |
label="Upload Images (1–5) or 1 Video",
|
| 126 |
file_types=["image", ".mp4", ".mov", ".avi"],
|
| 127 |
+
file_count="multiple",
|
| 128 |
+
visible=True
|
| 129 |
)
|
| 130 |
|
| 131 |
# URL input
|