dafajudin commited on
Commit
d58e371
·
1 Parent(s): 521c83c
Files changed (1) hide show
  1. app.py +4 -12
app.py CHANGED
@@ -1,15 +1,7 @@
1
- from transformers import pipeline
2
  import gradio as gr
3
- Visual_QA = pipeline(model="jihadzakki/blip1-medvqa")
4
 
 
 
5
 
6
- VisualQAApp = gr.Interface(fn=Visual_QA,
7
- inputs=[
8
- gr.Image(label="Upload image", type="pil"),
9
- gr.Textbox(label="Question"),
10
- ],
11
- outputs=[gr.Textbox(label="Answer")],
12
- title="Visual Question Answering using BLIP Model",
13
- description="VQA",
14
- allow_flagging="never")
15
- VisualQAApp.launch(share=True)
 
 
1
  import gradio as gr
 
2
 
3
+ def greet(name):
4
+ return "Hello " + name + "!!"
5
 
6
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
+ demo.launch()