Spaces:
Running
Running
Update models.py
Browse files
models.py
CHANGED
@@ -2,7 +2,10 @@
|
|
2 |
|
3 |
import gradio as gr
|
4 |
import spaces
|
5 |
-
import
|
|
|
|
|
|
|
6 |
|
7 |
# Load each model separately
|
8 |
demo_qwen = gr.load(
|
|
|
2 |
|
3 |
import gradio as gr
|
4 |
import spaces
|
5 |
+
import types
|
6 |
+
|
7 |
+
# Create a local "transformers_gradio" object to mimic the missing package
|
8 |
+
transformers_gradio = types.SimpleNamespace(registry="huggingface")
|
9 |
|
10 |
# Load each model separately
|
11 |
demo_qwen = gr.load(
|