Diotoara commited on
Commit
e114f9c
Β·
verified Β·
1 Parent(s): db1f82b

updated to object main app

Browse files
Files changed (1) hide show
  1. f5_tts_app.py +5 -3
f5_tts_app.py CHANGED
@@ -20,9 +20,11 @@ import sys
20
 
21
  import gradio as gr
22
  # from f5_tts import f5_tts_infer # Replace with actual import from repo
23
- from f5_tts.infer.infer_gradio import build_gradio_interface
24
- demo = build_gradio_interface()
25
- demo.launch()
 
 
26
 
27
  def tts_function(text):
28
  # This depends on F5-TTS repo structure
 
20
 
21
  import gradio as gr
22
  # from f5_tts import f5_tts_infer # Replace with actual import from repo
23
+ from f5_tts.infer import infer_gradio as app_module
24
+ if __name__ == '__main__':
25
+ app_module.app.render() # Assuming the Gradio object is named 'app' inside the module
26
+ app_module.app.launch()
27
+
28
 
29
  def tts_function(text):
30
  # This depends on F5-TTS repo structure