shivi commited on
Commit
d3ff9e6
1 Parent(s): 814e530

update image desc prompt

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -123,13 +123,15 @@ def generate_img_prompt(input_prompt):
123
  text = f"""
124
  Translate the given input prompt to English.
125
  Input Prompt: {input_prompt}
126
- Once translated, use the English version of the prompt to create a detailed image description suitable for a text-to-image model.
127
- Ensure the description is concise, limited to 2-3 lines, and integrates key elements from the translated prompt.
128
- Add the prompt English translation to the image description, and respond with that.
129
  """
130
  else:
131
  text = f"""Generate a detailed image description which can be used to generate an image using a text-to-image model based on the given input prompt:
 
132
  Input Prompt: {input_prompt}
 
133
  Do not use more than 3-4 lines for the description.
134
  """
135
 
 
123
  text = f"""
124
  Translate the given input prompt to English.
125
  Input Prompt: {input_prompt}
126
+
127
+ Then based on the English translation of the prompt, generate a detailed image description which can be used to generate an image using a text-to-image model.
128
+ Do not use more than 3-4 lines for the image description. Respond with only the image description.
129
  """
130
  else:
131
  text = f"""Generate a detailed image description which can be used to generate an image using a text-to-image model based on the given input prompt:
132
+
133
  Input Prompt: {input_prompt}
134
+
135
  Do not use more than 3-4 lines for the description.
136
  """
137