MrAli813 commited on
Commit
f47b19a
·
verified ·
1 Parent(s): 4588440

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -92,7 +92,8 @@ A1 = gr.ChatInterface(predict,
92
 
93
 
94
  A3 = gr.load(
95
- "models/microsoft/kosmos-2-patch14-224",
 
96
  title=" ",
97
  description="Upload Any Type of Imagery (photos, medical imagery, etc.), I'll Give You Its Description",
98
  outputs=[gr.Textbox(label="I see...")],
 
92
 
93
 
94
  A3 = gr.load(
95
+ from transformers import pipeline
96
+ pipe = pipeline("image-to-text", model="microsoft/kosmos-2-patch14-224"),
97
  title=" ",
98
  description="Upload Any Type of Imagery (photos, medical imagery, etc.), I'll Give You Its Description",
99
  outputs=[gr.Textbox(label="I see...")],