Spaces:
Sleeping
Sleeping
IliaLarchenko
commited on
Commit
•
5b181b6
1
Parent(s):
01d885f
Silent mode
Browse files
app.py
CHANGED
@@ -16,6 +16,9 @@ stt = STTManager(config)
|
|
16 |
|
17 |
default_audio_params["streaming"] = stt.streaming
|
18 |
|
|
|
|
|
|
|
19 |
# Interface
|
20 |
|
21 |
with gr.Blocks(title="AI Interviewer") as demo:
|
|
|
16 |
|
17 |
default_audio_params["streaming"] = stt.streaming
|
18 |
|
19 |
+
if os.getenv("SILENT", False):
|
20 |
+
tts.read_last_message = lambda x: None
|
21 |
+
|
22 |
# Interface
|
23 |
|
24 |
with gr.Blocks(title="AI Interviewer") as demo:
|