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