Update app.py
Browse files
app.py
CHANGED
@@ -339,7 +339,8 @@ with gr.Blocks(title="Media Generation and Search Explorer") as demo:
|
|
339 |
voice=voice,
|
340 |
)
|
341 |
response.stream_to_file(speech_file_path)
|
342 |
-
|
|
|
343 |
except Exception as e:
|
344 |
return None, f"Error generating speech: {e}"
|
345 |
|
|
|
339 |
voice=voice,
|
340 |
)
|
341 |
response.stream_to_file(speech_file_path)
|
342 |
+
url = image_to_url(speech_file_path)
|
343 |
+
return url
|
344 |
except Exception as e:
|
345 |
return None, f"Error generating speech: {e}"
|
346 |
|