sun2dar commited on
Commit
37bd728
·
1 Parent(s): 65ebf14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def generate_image(prompt,gradio_api_key):
27
  raise ValueError("Failed to generate image")
28
 
29
  def text_and_image_generator(prompt,maxi,cohere_api_key,gradio_api_key):
30
- text = generate_text(f"Generate a story with {prompt}. Conclude the generated story properly. The story length should contain {maxi} words",maxi,cohere_api_key)
31
  image = generate_image(text,gradio_api_key)
32
  title = generate_text(f"title for the story {prompt} within 5 words",5,cohere_api_key)
33
 
 
27
  raise ValueError("Failed to generate image")
28
 
29
  def text_and_image_generator(prompt,maxi,cohere_api_key,gradio_api_key):
30
+ text = generate_text(f"Generate a story with {prompt}. Conclude the generated story properly.",maxi,cohere_api_key)
31
  image = generate_image(text,gradio_api_key)
32
  title = generate_text(f"title for the story {prompt} within 5 words",5,cohere_api_key)
33