Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -805,6 +805,8 @@ if importlib.util.find_spec("torch_npu") is not None:
|
|
805 |
import sys
|
806 |
import os
|
807 |
import natsort
|
|
|
|
|
808 |
|
809 |
torch.manual_seed(1234)
|
810 |
|
@@ -849,8 +851,7 @@ image_processor = ImageProcessor(
|
|
849 |
max_patch_grid=12,
|
850 |
)
|
851 |
|
852 |
-
|
853 |
-
import spaces
|
854 |
|
855 |
@spaces.GPU(duration=120)
|
856 |
def inference_model(messages, image_path_list, video_path_list):
|
|
|
805 |
import sys
|
806 |
import os
|
807 |
import natsort
|
808 |
+
import gradio as gr
|
809 |
+
import spaces
|
810 |
|
811 |
torch.manual_seed(1234)
|
812 |
|
|
|
851 |
max_patch_grid=12,
|
852 |
)
|
853 |
|
854 |
+
|
|
|
855 |
|
856 |
@spaces.GPU(duration=120)
|
857 |
def inference_model(messages, image_path_list, video_path_list):
|