M4xjunior commited on
Commit
b74407e
·
1 Parent(s): f68e5ad
Files changed (2) hide show
  1. app.py +3 -3
  2. logs/sentence_analyzer_2024-12-02.log +2 -0
app.py CHANGED
@@ -165,8 +165,9 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Default(primary_hue="gray", secon
165
  nfe_slider,
166
  chunk_size_slider,
167
  seed_input, # Passando o seed para process_chunks
168
- f5tts_model, # Passando a instância F5TTS_ema_model como argumento
169
  ):
 
 
170
  # Dividir o texto em sentenças
171
  sentences = analyzer.split_into_sentences(gen_text_input)
172
 
@@ -223,8 +224,7 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Default(primary_hue="gray", secon
223
  nfe_slider,
224
  chunk_size_slider,
225
  seed_input,
226
- F5TTS_ema_model, # Passando a instância F5TTS_ema_model como argumento
227
- ],
228
  outputs=[
229
  audio_output,
230
  ref_text_input,
 
165
  nfe_slider,
166
  chunk_size_slider,
167
  seed_input, # Passando o seed para process_chunks
 
168
  ):
169
+ # Acessando a instância F5TTS_ema_model diretamente
170
+ f5tts_model = F5TTS_ema_model
171
  # Dividir o texto em sentenças
172
  sentences = analyzer.split_into_sentences(gen_text_input)
173
 
 
224
  nfe_slider,
225
  chunk_size_slider,
226
  seed_input,
227
+ ], # Removido F5TTS_ema_model da lista de inputs
 
228
  outputs=[
229
  audio_output,
230
  ref_text_input,
logs/sentence_analyzer_2024-12-02.log CHANGED
@@ -54,3 +54,5 @@
54
  2024-12-02 20:27:51,710 - SentenceAnalyzer - DEBUG - Normalized whitespace
55
  2024-12-02 20:27:51,733 - SentenceAnalyzer - DEBUG - Split text into 2 sentences using NLTK
56
  2024-12-02 20:27:51,734 - SentenceAnalyzer - INFO - Split text into 2 sentences after cleanup
 
 
 
54
  2024-12-02 20:27:51,710 - SentenceAnalyzer - DEBUG - Normalized whitespace
55
  2024-12-02 20:27:51,733 - SentenceAnalyzer - DEBUG - Split text into 2 sentences using NLTK
56
  2024-12-02 20:27:51,734 - SentenceAnalyzer - INFO - Split text into 2 sentences after cleanup
57
+ 2024-12-02 20:32:57,401 - SentenceAnalyzer - DEBUG - Logger set up successfully
58
+ 2024-12-02 20:32:57,401 - SentenceAnalyzer - INFO - SentenceAnalyzer initialized successfully