joeyanuff commited on
Commit
c36738a
·
1 Parent(s): 061fdfb

default lit_style

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -96,7 +96,7 @@ def transform_text(desc, openai_api_key, temperature, llm_chain, num_words,
96
  # if translate_to != TRANSLATE_TO_DEFAULT:
97
  # translate_to_str = "translated to " + translate_to + ", "
98
 
99
- literary_style_str = ""
100
  if literary_style != LITERARY_STYLE_DEFAULT:
101
  if literary_style == "Poetry":
102
  literary_style_str = "as a poem, "
@@ -109,14 +109,14 @@ def transform_text(desc, openai_api_key, temperature, llm_chain, num_words,
109
  elif literary_style == "Knock-knock":
110
  literary_style_str = "as a very funny knock-knock joke, "
111
 
112
- character_str = "as if written by The Old Lady Who Swalled A Fly, "
113
  if character != CHARACTER_DEFAULT:
114
  if character == "The Old Woman Who Lived In A Shoe":
115
- character_str = "as if written by the Old Woman Who Lived In A Shoe, "
116
  elif character == "Mary Had A Little Lamb":
117
- character_str = "as if written by Mary from Mary Had A Little Lamb, "
118
  elif character == "Humpty-Dumpty":
119
- character_str = "as if written by Humpty Dumpty, "
120
 
121
  # formatted_prompt = PROMPT_TEMPLATE.format(
122
  # original_words=desc,
 
96
  # if translate_to != TRANSLATE_TO_DEFAULT:
97
  # translate_to_str = "translated to " + translate_to + ", "
98
 
99
+ literary_style_str = "as a poem "
100
  if literary_style != LITERARY_STYLE_DEFAULT:
101
  if literary_style == "Poetry":
102
  literary_style_str = "as a poem, "
 
109
  elif literary_style == "Knock-knock":
110
  literary_style_str = "as a very funny knock-knock joke, "
111
 
112
+ character_str = "as if written by The Old Lady Who Swalled A Fly"
113
  if character != CHARACTER_DEFAULT:
114
  if character == "The Old Woman Who Lived In A Shoe":
115
+ character_str = "as if written by the Old Woman Who Lived In A Shoe"
116
  elif character == "Mary Had A Little Lamb":
117
+ character_str = "as if written by Mary from Mary Had A Little Lamb"
118
  elif character == "Humpty-Dumpty":
119
+ character_str = "as if written by Humpty Dumpty"
120
 
121
  # formatted_prompt = PROMPT_TEMPLATE.format(
122
  # original_words=desc,