joeyanuff commited on
Commit
81db2e6
1 Parent(s): d68e1f4

LITERARY_STYLE_DEFAULT

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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 == "Poetry":
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, "