gitlost-murali commited on
Commit
523e922
1 Parent(s): 08a2a10

add examples

Browse files
Files changed (2) hide show
  1. app.py +5 -1
  2. sample.png +0 -0
app.py CHANGED
@@ -13,11 +13,15 @@ def main():
13
  gr.Checkbox(label="Resize (Recommended)", value=True, info="Resize the image to 1920x1080 for better results?")],
14
  outputs=gr.Image(type="pil"),
15
  title="PTA-Text: A **Text-only** Click Model",
16
- description="Based on PTA-text ([Huggingface model card](https://huggingface.co/AskUI/pta-text-0.1) ).PTA is a small part of our bigger model - PTA-1 (Prompt-To-Automation). \nInstructions: Upload a UI image and enter a text finding prompt to see the model's prediction. \nLimitations: Currently, limited to single screen images."
 
 
17
  )
18
 
 
19
  iface.launch(server_name="0.0.0.0")
20
 
21
 
 
22
  if __name__ == "__main__":
23
  main()
 
13
  gr.Checkbox(label="Resize (Recommended)", value=True, info="Resize the image to 1920x1080 for better results?")],
14
  outputs=gr.Image(type="pil"),
15
  title="PTA-Text: A **Text-only** Click Model",
16
+ description="Based on PTA-text ([Huggingface model card](https://huggingface.co/AskUI/pta-text-0.1) ).PTA is a small part of our bigger model - PTA-1 (Prompt-To-Automation). \nInstructions: Upload a UI image and enter a text finding prompt to see the model's prediction. \nLimitations: Currently, limited to single screen images.",
17
+ examples=[["./sample.png", "click on the text 'Like'", 10, True],
18
+ ["./sample.png", "click on 'Submit' Retry for free!", 15, True]]
19
  )
20
 
21
+
22
  iface.launch(server_name="0.0.0.0")
23
 
24
 
25
+
26
  if __name__ == "__main__":
27
  main()
sample.png ADDED