gitlost-murali commited on
Commit
11970de
·
1 Parent(s): 4c219e4

add instructions

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -97,10 +97,10 @@ def main():
97
  iface = gr.Interface(
98
  fn=inference.process_image_and_draw_circle,
99
  inputs=[gr.Image(type="pil", label = "Upload Image"),
100
- gr.Textbox(label = "Prompt", placeholder="Enter prompt here...")],
101
  outputs=gr.Image(type="pil"),
102
- title="Pix2Struct Image Processing",
103
- description="Upload an image and enter a prompt to see the model's prediction."
104
  )
105
 
106
  iface.launch(server_name="0.0.0.0")
 
97
  iface = gr.Interface(
98
  fn=inference.process_image_and_draw_circle,
99
  inputs=[gr.Image(type="pil", label = "Upload Image"),
100
+ gr.Textbox(label = "Prompt", placeholder='Enter a prompt to find in the image', default='Click on the text "Login"')],
101
  outputs=gr.Image(type="pil"),
102
+ title="PTA Text: Prompt-To-Automation UI domain **for Text**",
103
+ description="Upload a UI image and enter a text finding prompt to see the model's prediction. \n For instance, click on the text 'Login'"
104
  )
105
 
106
  iface.launch(server_name="0.0.0.0")