Prakh24s commited on
Commit
3e6eb71
·
verified ·
1 Parent(s): 64e6a59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def get_keyword_prompt(image_url):
82
 
83
  def infer(text,title):
84
 
85
- prompt = f"""Please create a simple suitable image to accompany the following text as part of an article with the title "{title}". The objects in the image must have realistic proportions, always keep people/person in focus. Text: "{text}"
86
  Please make sure not to include text in the image."""
87
  image_url_openai, revised_prompt = generate_image_openai(prompt)
88
  prompt_det = get_keyword_prompt(image_url_openai)
 
82
 
83
  def infer(text,title):
84
 
85
+ prompt = f"""Please create a simple suitable image to accompany the following text as part of an article with the title "{title}". The objects in the image must have realistic proportions, always keep people/person in focus, and keep the colors warm, try to keep it simple with few objects/concepts. Text: "{text}"
86
  Please make sure not to include text in the image."""
87
  image_url_openai, revised_prompt = generate_image_openai(prompt)
88
  prompt_det = get_keyword_prompt(image_url_openai)