ruslanmv commited on
Commit
1908bcf
·
verified ·
1 Parent(s): 4e4f506

Update models.py

Browse files
Files changed (1) hide show
  1. models.py +4 -1
models.py CHANGED
@@ -2,7 +2,10 @@
2
 
3
  import gradio as gr
4
  import spaces
5
- import transformers_gradio
 
 
 
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(