Solomon7890 commited on
Commit
2ac7e60
·
verified ·
1 Parent(s): 7d1069e

Update app.py

Browse files

deepseek update

Files changed (1) hide show
  1. app.py +29 -0
app.py CHANGED
@@ -68,3 +68,32 @@ with gr.Blocks() as demo:
68
 
69
  if __name__ == "__main__":
70
  demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
 
69
  if __name__ == "__main__":
70
  demo.launch()
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+ # Use a pipeline as a high-level helper
88
+ from transformers import pipeline
89
+
90
+ pipe = pipeline("image-text-to-text", model="deepseek-ai/DeepSeek-OCR", trust_remote_code=True)
91
+
92
+ # Load model directly
93
+ from transformers import AutoModel
94
+ model = AutoModel.from_pretrained("deepseek-ai/DeepSeek-OCR", trust_remote_code=True, dtype="auto")
95
+
96
+
97
+
98
+
99
+