Spaces:
Sleeping
Sleeping
removing formality and translate radios
Browse files
app.py
CHANGED
@@ -184,13 +184,13 @@ with block:
|
|
184 |
inputs=[num_words_slider, num_words_state],
|
185 |
outputs=[num_words_state])
|
186 |
|
187 |
-
formality_radio = gr.Radio(label="Formality:", choices=["Casual", "Polite", "Honorific"],
|
188 |
-
|
189 |
-
formality_radio.change(update_foo,
|
190 |
-
|
191 |
-
|
192 |
|
193 |
-
translate_to_radio = gr.Radio(label="Translate to:", choices=[TRANSLATE_TO_DEFAULT, "emojis", "Gen Z slang", "how the stereotypical Karen would say it", "Pirate"], value=TRANSLATE_TO_DEFAULT)
|
194 |
|
195 |
|
196 |
# translate_to_radio = gr.Radio(label="Translate to:", choices=[
|
@@ -201,6 +201,12 @@ with block:
|
|
201 |
# "Klingon", "Korean", "Norwegian", "Old English", "Pirate", "Polish", "Portuguese", "Romanian",
|
202 |
# "Russian", "Spanish", "Strange Planet expospeak technical talk", "Swedish", "Thai", "Turkish", "Vietnamese", "Yoda"], value=TRANSLATE_TO_DEFAULT)
|
203 |
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
translate_to_radio.change(update_foo,
|
205 |
inputs=[translate_to_radio, translate_to_state],
|
206 |
outputs=[translate_to_state])
|
@@ -213,13 +219,7 @@ with block:
|
|
213 |
inputs=[literary_style_radio, literary_style_state],
|
214 |
outputs=[literary_style_state])
|
215 |
|
216 |
-
|
217 |
-
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"],
|
218 |
-
value=CHARACTER_DEFAULT)
|
219 |
-
character_radio.change(update_foo,
|
220 |
-
inputs=[character_radio, character_state],
|
221 |
-
outputs=[character_state])
|
222 |
-
|
223 |
gr.Examples(
|
224 |
examples=[
|
225 |
"My armpits are sweating gravy",
|
|
|
184 |
inputs=[num_words_slider, num_words_state],
|
185 |
outputs=[num_words_state])
|
186 |
|
187 |
+
# formality_radio = gr.Radio(label="Formality:", choices=["Casual", "Polite", "Honorific"],
|
188 |
+
# value=FORMALITY_DEFAULT)
|
189 |
+
# formality_radio.change(update_foo,
|
190 |
+
# inputs=[formality_radio, formality_state],
|
191 |
+
# outputs=[formality_state])
|
192 |
|
193 |
+
# translate_to_radio = gr.Radio(label="Translate to:", choices=[TRANSLATE_TO_DEFAULT, "emojis", "Gen Z slang", "how the stereotypical Karen would say it", "Pirate"], value=TRANSLATE_TO_DEFAULT)
|
194 |
|
195 |
|
196 |
# translate_to_radio = gr.Radio(label="Translate to:", choices=[
|
|
|
201 |
# "Klingon", "Korean", "Norwegian", "Old English", "Pirate", "Polish", "Portuguese", "Romanian",
|
202 |
# "Russian", "Spanish", "Strange Planet expospeak technical talk", "Swedish", "Thai", "Turkish", "Vietnamese", "Yoda"], value=TRANSLATE_TO_DEFAULT)
|
203 |
|
204 |
+
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"],
|
205 |
+
value=CHARACTER_DEFAULT)
|
206 |
+
character_radio.change(update_foo,
|
207 |
+
inputs=[character_radio, character_state],
|
208 |
+
outputs=[character_state])
|
209 |
+
|
210 |
translate_to_radio.change(update_foo,
|
211 |
inputs=[translate_to_radio, translate_to_state],
|
212 |
outputs=[translate_to_state])
|
|
|
219 |
inputs=[literary_style_radio, literary_style_state],
|
220 |
outputs=[literary_style_state])
|
221 |
|
222 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
gr.Examples(
|
224 |
examples=[
|
225 |
"My armpits are sweating gravy",
|