Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from elevenlabs import voices, generate, set_api_key, UnauthenticatedRateLimitEr
|
|
10 |
elevenlabs_api_key = os.environ.get("ELEVEN_KEY_TOKEN", None)
|
11 |
voice_id = os.environ.get("VOICE_ID", None)
|
12 |
ttsPassword = os.environ.get("TTS_PASSWORD", None)
|
13 |
-
|
14 |
|
15 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
16 |
|
@@ -157,4 +157,10 @@ chat = gr.ChatInterface(
|
|
157 |
additional_inputs=[passwordInput],
|
158 |
)
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
chat.launch(show_api=False)
|
|
|
10 |
elevenlabs_api_key = os.environ.get("ELEVEN_KEY_TOKEN", None)
|
11 |
voice_id = os.environ.get("VOICE_ID", None)
|
12 |
ttsPassword = os.environ.get("TTS_PASSWORD", None)
|
13 |
+
password = None
|
14 |
|
15 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
16 |
|
|
|
157 |
additional_inputs=[passwordInput],
|
158 |
)
|
159 |
|
160 |
+
def ttsPasswordImport():
|
161 |
+
password = passwordInput.value()
|
162 |
+
|
163 |
+
with chat:
|
164 |
+
passwordInput.input(fn=ttsPasswordImport())
|
165 |
+
|
166 |
chat.launch(show_api=False)
|