Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
"""Deploying AI Voice Chatbot Gradio App."""
|
2 |
from gradio import Audio, Interface, Textbox
|
|
|
3 |
|
4 |
from utils import (TextGenerationPipeline, from_en_translation,
|
5 |
html_audio_autoplay, stt, to_en_translation, tts,
|
@@ -10,7 +11,7 @@ desired_language = "de"
|
|
10 |
response_generator_pipe = TextGenerationPipeline(max_length=max_answer_length)
|
11 |
|
12 |
|
13 |
-
def main(audio: object) ->
|
14 |
"""Calls functions for deploying gradio app.
|
15 |
|
16 |
It responds both verbally and in text
|
|
|
1 |
"""Deploying AI Voice Chatbot Gradio App."""
|
2 |
from gradio import Audio, Interface, Textbox
|
3 |
+
from typing import Tuple
|
4 |
|
5 |
from utils import (TextGenerationPipeline, from_en_translation,
|
6 |
html_audio_autoplay, stt, to_en_translation, tts,
|
|
|
11 |
response_generator_pipe = TextGenerationPipeline(max_length=max_answer_length)
|
12 |
|
13 |
|
14 |
+
def main(audio: object) -> Tuple[str, str, str, object]:
|
15 |
"""Calls functions for deploying gradio app.
|
16 |
|
17 |
It responds both verbally and in text
|