Spaces:
Build error
Build error
dafajudin
commited on
Commit
·
d58e371
1
Parent(s):
521c83c
update
Browse files
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 |
-
|
7 |
-
|
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|