Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import random
|
|
| 10 |
# Create the gr.State component *outside* the gr.Blocks context
|
| 11 |
predictor_state = gr.State(None)
|
| 12 |
|
| 13 |
-
|
| 14 |
import torch
|
| 15 |
from skyreelsinfer import TaskType
|
| 16 |
from skyreelsinfer.offload import OffloadConfig
|
|
|
|
| 10 |
# Create the gr.State component *outside* the gr.Blocks context
|
| 11 |
predictor_state = gr.State(None)
|
| 12 |
|
| 13 |
+
def init_predictor(task_type: str):
|
| 14 |
import torch
|
| 15 |
from skyreelsinfer import TaskType
|
| 16 |
from skyreelsinfer.offload import OffloadConfig
|