Jagad1234unique commited on
Commit
d5b4347
·
verified ·
1 Parent(s): d402141

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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)