Spaces:
Running
on
Zero
Running
on
Zero
DmitryRyumin
commited on
Commit
β’
19011fd
1
Parent(s):
1688157
Summary
Browse files- app/event_handlers/submit.py +2 -0
- requirements.txt +1 -0
app/event_handlers/submit.py
CHANGED
@@ -5,6 +5,7 @@ Description: Event handler for Gradio app to submit.
|
|
5 |
License: MIT License
|
6 |
"""
|
7 |
|
|
|
8 |
import torch
|
9 |
import pandas as pd
|
10 |
import cv2
|
@@ -40,6 +41,7 @@ from app.load_models import VideoFeatureExtractor
|
|
40 |
from app.components import html_message
|
41 |
|
42 |
|
|
|
43 |
def event_handler_submit(
|
44 |
video: str,
|
45 |
) -> tuple[gr.HTML, gr.Plot, gr.Plot, gr.Plot, gr.Plot]:
|
|
|
5 |
License: MIT License
|
6 |
"""
|
7 |
|
8 |
+
import spaces
|
9 |
import torch
|
10 |
import pandas as pd
|
11 |
import cv2
|
|
|
41 |
from app.components import html_message
|
42 |
|
43 |
|
44 |
+
@spaces.GPU
|
45 |
def event_handler_submit(
|
46 |
video: str,
|
47 |
) -> tuple[gr.HTML, gr.Plot, gr.Plot, gr.Plot, gr.Plot]:
|
requirements.txt
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
gradio==5.4.0
|
2 |
gradio_client==1.4.2
|
|
|
3 |
polars==1.12.0
|
4 |
torch==2.2.2
|
5 |
torchaudio==2.2.2
|
|
|
1 |
gradio==5.4.0
|
2 |
gradio_client==1.4.2
|
3 |
+
spaces==0.30.4
|
4 |
polars==1.12.0
|
5 |
torch==2.2.2
|
6 |
torchaudio==2.2.2
|