Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ with gr.Blocks(fill_height=True) as OpenAIMoDrAg:
|
|
| 130 |
|
| 131 |
@gr.render(inputs=top)
|
| 132 |
def get_speech(args):
|
| 133 |
-
audio_file = '
|
| 134 |
with open(audio_file, 'rb') as audio_bytes:
|
| 135 |
audio = base64.b64encode(audio_bytes.read()).decode("utf-8")
|
| 136 |
audio_player = f'<audio src="data:audio/mpeg;base64,{audio}" controls autoplay></audio>'
|
|
|
|
| 130 |
|
| 131 |
@gr.render(inputs=top)
|
| 132 |
def get_speech(args):
|
| 133 |
+
audio_file = 'MoDrAg_hello.mp3'
|
| 134 |
with open(audio_file, 'rb') as audio_bytes:
|
| 135 |
audio = base64.b64encode(audio_bytes.read()).decode("utf-8")
|
| 136 |
audio_player = f'<audio src="data:audio/mpeg;base64,{audio}" controls autoplay></audio>'
|