Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
gr.load("models/Qwen/Qwen2
|
4 |
-
|
5 |
def predict(input_data):
|
6 |
return model(input_data)
|
7 |
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
model=gr.load("models/Qwen/Qwen2-7B").launch()
|
4 |
+
# Load the model only once at startup
|
5 |
def predict(input_data):
|
6 |
return model(input_data)
|
7 |
|