Spaces:
Sleeping
Sleeping
DmitryRyumin
commited on
Update app/event_handlers/calculate_practical_tasks.py
Browse files
app/event_handlers/calculate_practical_tasks.py
CHANGED
@@ -5,6 +5,7 @@ Description: Event handler for Gradio app to calculate practical tasks.
|
|
5 |
License: MIT License
|
6 |
"""
|
7 |
|
|
|
8 |
from app.oceanai_init import b5
|
9 |
import re
|
10 |
import gradio as gr
|
@@ -165,6 +166,7 @@ def create_person_metadata(person_id, files, video_metadata):
|
|
165 |
)
|
166 |
|
167 |
|
|
|
168 |
def event_handler_calculate_practical_task_blocks(
|
169 |
files,
|
170 |
practical_subtasks,
|
|
|
5 |
License: MIT License
|
6 |
"""
|
7 |
|
8 |
+
import spaces
|
9 |
from app.oceanai_init import b5
|
10 |
import re
|
11 |
import gradio as gr
|
|
|
166 |
)
|
167 |
|
168 |
|
169 |
+
@spaces.GPU
|
170 |
def event_handler_calculate_practical_task_blocks(
|
171 |
files,
|
172 |
practical_subtasks,
|