updated to object main app
Browse files- 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
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
| 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
|