KingNish commited on
Commit
1624edf
·
verified ·
1 Parent(s): a2f6e94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- return speech_file_path
 
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