Spaces:
Sleeping
Sleeping
solving the not framing problem
Browse files
app.py
CHANGED
@@ -10,12 +10,12 @@ with gr.Blocks() as block:
|
|
10 |
options = gr.Dropdown(choices=["Blip Saffal", "Blip CN"], label="Models", info="Select the model to use..", )
|
11 |
# need to improve this one...
|
12 |
|
13 |
-
txt = gr.Textbox(label="Insert a question
|
14 |
txt_3 = gr.Textbox(value="", label="Your answer is here..")
|
15 |
btn = gr.Button(value="Submit")
|
16 |
|
17 |
-
|
18 |
-
image = gr.Image(type="pil", value=
|
19 |
|
20 |
btn.click(inference.inference, inputs=[options, image, txt], outputs=[txt_3])
|
21 |
|
|
|
10 |
options = gr.Dropdown(choices=["Blip Saffal", "Blip CN"], label="Models", info="Select the model to use..", )
|
11 |
# need to improve this one...
|
12 |
|
13 |
+
txt = gr.Textbox(label="Insert a question...", lines=2)
|
14 |
txt_3 = gr.Textbox(value="", label="Your answer is here..")
|
15 |
btn = gr.Button(value="Submit")
|
16 |
|
17 |
+
frame = os.path.join(os.path.dirname(__file__), "testing.jpg")
|
18 |
+
image = gr.Image(type="pil", value=frame)
|
19 |
|
20 |
btn.click(inference.inference, inputs=[options, image, txt], outputs=[txt_3])
|
21 |
|