andreeabodea commited on
Commit
2675dbe
1 Parent(s): 1169a01

Clean app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -18
app.py CHANGED
@@ -1,21 +1,3 @@
1
- """import gradio as gr
2
- from transformers import pipeline
3
-
4
- pipe = pipeline("image-to-text",
5
- model="./models/Salesforce/blip-image-captioning-base")
6
-
7
- def launch(input):
8
- out = pipe(input)
9
- return out[0]['generated_text']
10
-
11
- iface = gr.Interface(launch,
12
- inputs=gr.Image(type='pil'),
13
- outputs="text")
14
-
15
- iface.launch()
16
- """
17
-
18
-
19
  import gradio as gr
20
 
21
  def greet(name):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
  def greet(name):