joeyanuff commited on
Commit
6d7bce2
1 Parent(s): cf357d1

choices removed

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -101,8 +101,8 @@ def transform_text(desc, openai_api_key, temperature, llm_chain, num_words,
101
  literary_style_str = "as a haiku, "
102
  elif literary_style == "Limerick":
103
  literary_style_str = "as a limerick, "
104
- elif literary_style == "Joke":
105
- literary_style_str = "as a very funny joke with a setup and punchline, "
106
  elif literary_style == "Knock-knock":
107
  literary_style_str = "as a very funny knock-knock joke, "
108
 
@@ -110,8 +110,8 @@ def transform_text(desc, openai_api_key, temperature, llm_chain, num_words,
110
  if character != CHARACTER_DEFAULT:
111
  if character == "The Old Woman Who Lived In A Shoe":
112
  character_str = "as if written by the Old Woman Who Lived In A Shoe, "
113
- elif character == "Mary Had A Little Lamb":
114
- character_str = "as if written by Mary from Mary Had A Little Lamb, "
115
  elif character == "Humpty-Dumpty":
116
  character_str = "as if written by Humpty Dumpty, "
117
 
@@ -213,14 +213,14 @@ with block:
213
  inputs=[num_words_slider, num_words_state],
214
  outputs=[num_words_state])
215
 
216
- character_radio = gr.Radio(label="As if written by:", choices=["The Old Lady Who Swallowed A Fly", "The Old Woman Who Lived In A Shoe", "Mary Had A Little Lamb", "Humpty-Dumpty"],
217
  value=CHARACTER_DEFAULT)
218
  character_radio.change(update_foo,
219
  inputs=[character_radio, character_state],
220
  outputs=[character_state])
221
 
222
  literary_style_radio = gr.Radio(label="Literary style:", choices=[
223
- LITERARY_STYLE_DEFAULT, "Haiku", "Limerick", "Joke", "Knock-knock"],
224
  value=LITERARY_STYLE_DEFAULT)
225
 
226
  literary_style_radio.change(update_foo,
 
101
  literary_style_str = "as a haiku, "
102
  elif literary_style == "Limerick":
103
  literary_style_str = "as a limerick, "
104
+ # elif literary_style == "Joke":
105
+ # literary_style_str = "as a very funny joke with a setup and punchline, "
106
  elif literary_style == "Knock-knock":
107
  literary_style_str = "as a very funny knock-knock joke, "
108
 
 
110
  if character != CHARACTER_DEFAULT:
111
  if character == "The Old Woman Who Lived In A Shoe":
112
  character_str = "as if written by the Old Woman Who Lived In A Shoe, "
113
+ # elif character == "Mary Had A Little Lamb":
114
+ # character_str = "as if written by Mary from Mary Had A Little Lamb, "
115
  elif character == "Humpty-Dumpty":
116
  character_str = "as if written by Humpty Dumpty, "
117
 
 
213
  inputs=[num_words_slider, num_words_state],
214
  outputs=[num_words_state])
215
 
216
+ character_radio = gr.Radio(label="As if written by:", choices=["The Old Lady Who Swallowed A Fly", "The Old Woman Who Lived In A Shoe", "Humpty-Dumpty"],
217
  value=CHARACTER_DEFAULT)
218
  character_radio.change(update_foo,
219
  inputs=[character_radio, character_state],
220
  outputs=[character_state])
221
 
222
  literary_style_radio = gr.Radio(label="Literary style:", choices=[
223
+ LITERARY_STYLE_DEFAULT, "Haiku", "Limerick", "Knock-knock"],
224
  value=LITERARY_STYLE_DEFAULT)
225
 
226
  literary_style_radio.change(update_foo,