Spaces:
Runtime error
Runtime error
thekivashyn
commited on
Commit
•
67d6308
1
Parent(s):
125926e
upload
Browse files
app.py
CHANGED
@@ -609,9 +609,8 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
609 |
gr.HTML(
|
610 |
"""<b><center>GPT + WolframAlpha + Whisper</center></b>
|
611 |
<p><center>New feature: <b>Embeddings</b></center></p>""")
|
612 |
-
|
613 |
-
openai_api_key_textbox =
|
614 |
-
show_label=False, lines=1, type='password')
|
615 |
|
616 |
with gr.Row():
|
617 |
with gr.Column(scale=1, min_width=TALKING_HEAD_WIDTH, visible=True):
|
@@ -651,17 +650,7 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
651 |
# audio_comp_tb = gr.Textbox(label="Just say it!", lines=1)
|
652 |
# audio_comp_tb.submit(transcribe_dummy, inputs=[audio_comp_tb, whisper_lang_state], outputs=[message])
|
653 |
|
654 |
-
|
655 |
-
examples=["How many people live in Canada?",
|
656 |
-
"What is 2 to the 30th power?",
|
657 |
-
"If x+y=10 and x-y=4, what are x and y?",
|
658 |
-
"How much did it rain in SF today?",
|
659 |
-
"Get me information about the movie 'Avatar'",
|
660 |
-
"What are the top tech headlines in the US?",
|
661 |
-
"On the desk, you see two blue booklets, two purple booklets, and two yellow pairs of sunglasses - "
|
662 |
-
"if I remove all the pairs of sunglasses from the desk, how many purple items remain on it?"],
|
663 |
-
inputs=message
|
664 |
-
)
|
665 |
|
666 |
with gr.Tab("Settings"):
|
667 |
tools_cb_group = gr.CheckboxGroup(label="Tools:", choices=TOOLS_LIST,
|
@@ -722,7 +711,7 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
722 |
"Portuguese (Brazilian)", "Portuguese (European)", "Romanian", "Russian", "Spanish (European)",
|
723 |
"Spanish (Mexican)", "Spanish (US)", "Swedish", "Turkish", "Ukrainian", "Welsh",
|
724 |
"emojis", "Gen Z slang", "how the stereotypical Karen would say it", "Klingon", "Neanderthal",
|
725 |
-
"Pirate", "Strange Planet expospeak technical talk", "Yoda"],
|
726 |
value=TRANSLATE_TO_DEFAULT)
|
727 |
|
728 |
translate_to_radio.change(update_foo,
|
|
|
609 |
gr.HTML(
|
610 |
"""<b><center>GPT + WolframAlpha + Whisper</center></b>
|
611 |
<p><center>New feature: <b>Embeddings</b></center></p>""")
|
612 |
+
|
613 |
+
openai_api_key_textbox = "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"
|
|
|
614 |
|
615 |
with gr.Row():
|
616 |
with gr.Column(scale=1, min_width=TALKING_HEAD_WIDTH, visible=True):
|
|
|
650 |
# audio_comp_tb = gr.Textbox(label="Just say it!", lines=1)
|
651 |
# audio_comp_tb.submit(transcribe_dummy, inputs=[audio_comp_tb, whisper_lang_state], outputs=[message])
|
652 |
|
653 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
654 |
|
655 |
with gr.Tab("Settings"):
|
656 |
tools_cb_group = gr.CheckboxGroup(label="Tools:", choices=TOOLS_LIST,
|
|
|
711 |
"Portuguese (Brazilian)", "Portuguese (European)", "Romanian", "Russian", "Spanish (European)",
|
712 |
"Spanish (Mexican)", "Spanish (US)", "Swedish", "Turkish", "Ukrainian", "Welsh",
|
713 |
"emojis", "Gen Z slang", "how the stereotypical Karen would say it", "Klingon", "Neanderthal",
|
714 |
+
"Pirate", "Strange Planet expospeak technical talk", "Yoda", " Vietnamese (Vietnam)"],
|
715 |
value=TRANSLATE_TO_DEFAULT)
|
716 |
|
717 |
translate_to_radio.change(update_foo,
|