wiusdy commited on
Commit
c8027b7
1 Parent(s): 226b9ca

solving the not framing problem

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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..", lines=2)
14
  txt_3 = gr.Textbox(value="", label="Your answer is here..")
15
  btn = gr.Button(value="Submit")
16
 
17
- dogs = os.path.join(os.path.dirname(__file__), "sample_2.png")
18
- image = gr.Image(type="pil", value=dogs)
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