gorkemgoknar
commited on
Commit
•
2b29342
1
Parent(s):
32524de
Update app.py
Browse files
app.py
CHANGED
@@ -679,6 +679,12 @@ latent_map = {}
|
|
679 |
latent_map["AI Assistant"] = get_latents("examples/female.wav")
|
680 |
|
681 |
#### GRADIO INTERFACE ####
|
|
|
|
|
|
|
|
|
|
|
|
|
682 |
|
683 |
with gr.Blocks(title=title) as demo:
|
684 |
gr.Markdown(DESCRIPTION)
|
@@ -722,7 +728,15 @@ with gr.Blocks(title=title) as demo:
|
|
722 |
)
|
723 |
|
724 |
audio.end(stop)
|
725 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
726 |
|
727 |
clear_btn = gr.ClearButton([chatbot, audio])
|
728 |
|
|
|
679 |
latent_map["AI Assistant"] = get_latents("examples/female.wav")
|
680 |
|
681 |
#### GRADIO INTERFACE ####
|
682 |
+
EXAMPLES = [
|
683 |
+
[[],"What is 42?"],
|
684 |
+
[[],"Speak in French, tell me how are you doing?"],
|
685 |
+
[[],"Antworten Sie mir von nun an auf Deutsch"],
|
686 |
+
|
687 |
+
]
|
688 |
|
689 |
with gr.Blocks(title=title) as demo:
|
690 |
gr.Markdown(DESCRIPTION)
|
|
|
728 |
)
|
729 |
|
730 |
audio.end(stop)
|
731 |
+
|
732 |
+
with gr.Row():
|
733 |
+
gr.Examples(
|
734 |
+
EXAMPLES,
|
735 |
+
[chatbot, txt],
|
736 |
+
[chatbot, txt],
|
737 |
+
add_text,
|
738 |
+
cache_examples=False,
|
739 |
+
)
|
740 |
|
741 |
clear_btn = gr.ClearButton([chatbot, audio])
|
742 |
|