Spaces:
Running
on
T4
Running
on
T4
update image desc prompt
Browse files
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 |
-
|
| 127 |
-
|
| 128 |
-
|
| 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 |
|