Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,12 +80,19 @@ def respond_to_input(input_text):
|
|
| 80 |
output_audio = text_to_speech(output_text)
|
| 81 |
return output_text, output_audio.export(format="wav")
|
| 82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
iface = gr.Interface(
|
| 84 |
fn=respond_to_input,
|
| 85 |
inputs=["text", "microphone"],
|
| 86 |
outputs=["text", "audio"],
|
| 87 |
live=True,
|
| 88 |
-
|
|
|
|
| 89 |
description="Type or speak to me, and I'll generate a response!",
|
| 90 |
theme="light",
|
| 91 |
)
|
|
|
|
| 80 |
output_audio = text_to_speech(output_text)
|
| 81 |
return output_text, output_audio.export(format="wav")
|
| 82 |
|
| 83 |
+
examples = [
|
| 84 |
+
["मुझे अपने करियर के बारे में सुझाव दो", "मैं कैसे अध्ययन कर सकता हूँ?"],
|
| 85 |
+
["कृपया मुझे एक कहानी सुनाएं", "ताजमहल के बारे में कुछ बताएं"],
|
| 86 |
+
["मेरा नाम क्या है?", "आपका पसंदीदा फिल्म कौन सी है?"],
|
| 87 |
+
]
|
| 88 |
+
|
| 89 |
iface = gr.Interface(
|
| 90 |
fn=respond_to_input,
|
| 91 |
inputs=["text", "microphone"],
|
| 92 |
outputs=["text", "audio"],
|
| 93 |
live=True,
|
| 94 |
+
examples=examples,
|
| 95 |
+
title="CAMAI",
|
| 96 |
description="Type or speak to me, and I'll generate a response!",
|
| 97 |
theme="light",
|
| 98 |
)
|