Spaces:
Running
Running
LITERARY_STYLE_DEFAULT
Browse files
app.py
CHANGED
@@ -95,11 +95,9 @@ def transform_text(desc, openai_api_key, temperature, llm_chain, num_words,
|
|
95 |
# if translate_to != TRANSLATE_TO_DEFAULT:
|
96 |
# translate_to_str = "translated to " + translate_to + ", "
|
97 |
|
98 |
-
literary_style_str = ""
|
99 |
if literary_style != LITERARY_STYLE_DEFAULT:
|
100 |
-
if literary_style == "
|
101 |
-
literary_style_str = "as a poem, "
|
102 |
-
elif literary_style == "Haiku":
|
103 |
literary_style_str = "as a haiku, "
|
104 |
elif literary_style == "Limerick":
|
105 |
literary_style_str = "as a limerick, "
|
|
|
95 |
# if translate_to != TRANSLATE_TO_DEFAULT:
|
96 |
# translate_to_str = "translated to " + translate_to + ", "
|
97 |
|
98 |
+
literary_style_str = "as a poem, "
|
99 |
if literary_style != LITERARY_STYLE_DEFAULT:
|
100 |
+
if literary_style == "Haiku":
|
|
|
|
|
101 |
literary_style_str = "as a haiku, "
|
102 |
elif literary_style == "Limerick":
|
103 |
literary_style_str = "as a limerick, "
|