Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ if phone_waiting_sound.channels > 1:
|
|
| 24 |
sound_samples = sound_samples.astype(np.float32) / 32768.0 # Normalize to [-1,
|
| 25 |
def startup(_):
|
| 26 |
yield (phone_waiting_sound.frame_rate, sound_samples)
|
| 27 |
-
STARTUP_MESSAGE = "สวัสดีค่ะ
|
| 28 |
yield from synthesize_text(STARTUP_MESSAGE)
|
| 29 |
time.sleep(2)
|
| 30 |
yield AdditionalOutputs([{"role": "assistant", "content": STARTUP_MESSAGE}])
|
|
|
|
| 24 |
sound_samples = sound_samples.astype(np.float32) / 32768.0 # Normalize to [-1,
|
| 25 |
def startup(_):
|
| 26 |
yield (phone_waiting_sound.frame_rate, sound_samples)
|
| 27 |
+
STARTUP_MESSAGE = "สวัสดีค่ะณภัทร 1157Homeshopping ยินดีให้บริการค่ะ"
|
| 28 |
yield from synthesize_text(STARTUP_MESSAGE)
|
| 29 |
time.sleep(2)
|
| 30 |
yield AdditionalOutputs([{"role": "assistant", "content": STARTUP_MESSAGE}])
|