lgaleana commited on
Commit
d2d1cfd
1 Parent(s): b30d7de
ai_tasks/headlines_for_images.py CHANGED
@@ -28,7 +28,7 @@ Use the following format.
28
  "reason": Why the image was chosen
29
  "url":
30
  "headline"":
31
- "original_domensions": The image's dimensions
32
  }}
33
  ```
34
  """
 
28
  "reason": Why the image was chosen
29
  "url":
30
  "headline"":
31
+ "image_dimensions": The dimensions of the original image
32
  }}
33
  ```
34
  """
gradio_app.py CHANGED
@@ -65,10 +65,12 @@ with gr.Blocks() as demo:
65
  gr.Markdown(
66
  """
67
  ## Scrape a website and get an ad
68
- Enter an url and the dimensions for an image (eg, 300x600) and get an image from the website and the headline for an ad.
 
 
 
69
  """
70
  )
71
- gr.Markdown("Edit the AI tasks at your convenience.")
72
 
73
  url = gr.Textbox(label="Input: {url}")
74
  dimensions = gr.Textbox(label="Input: {dimensions}")
 
65
  gr.Markdown(
66
  """
67
  ## Scrape a website and get an ad
68
+ Enter an url and the dimensions for an image (eg, 300x600).
69
+ <br> A sequence of code and AI tasks will scrape the website and find an image that best fits those dimensions.
70
+ <br> It's your job to edit the image.
71
+ <br> A headline for your ad will also be generated, along with an explanation of why the image was chosen.
72
  """
73
  )
 
74
 
75
  url = gr.Textbox(label="Input: {url}")
76
  dimensions = gr.Textbox(label="Input: {dimensions}")