ruslanmv commited on
Commit
cec1f02
·
verified ·
1 Parent(s): d212f4f

Update models.py

Browse files
Files changed (1) hide show
  1. models.py +2 -3
models.py CHANGED
@@ -1,5 +1,4 @@
1
- import gradio as gr
2
 
3
- # Load and return the model interface
4
  def load_model():
5
- return gr.Interface.load("models/deepseek-ai/DeepSeek-R1")
 
1
+ from transformers import pipeline
2
 
 
3
  def load_model():
4
+ return pipeline("text-generation", model="deepseek-ai/DeepSeek-R1")