Spaces:
shawange
/
Running on Zero

shawange commited on
Commit
d21209b
·
1 Parent(s): 9d5ea3d
Files changed (2) hide show
  1. app.py +3 -2
  2. requirements.txt +1 -0
app.py CHANGED
@@ -2,6 +2,7 @@
2
  """
3
  HuggingFace Spaces app.py for IndexTTS2 with Auto-Processing and Combined Audio
4
  """
 
5
  import os
6
  import sys
7
  import subprocess
@@ -232,7 +233,7 @@ def create_combined_audios(audio_files_info):
232
 
233
  return combined_files
234
 
235
-
236
  def auto_process_dataset():
237
  """
238
  Auto-process TXT files from Monarchtaba22/rawAffirmation
@@ -514,7 +515,7 @@ def get_status():
514
  return current_status + " 🔄"
515
  return current_status
516
 
517
-
518
  def manual_generate(text, reference_audio, emotion_audio, emo_alpha, use_emo_text):
519
  """Manual TTS generation"""
520
  global tts_model
 
2
  """
3
  HuggingFace Spaces app.py for IndexTTS2 with Auto-Processing and Combined Audio
4
  """
5
+ import spaces
6
  import os
7
  import sys
8
  import subprocess
 
233
 
234
  return combined_files
235
 
236
+ @spaces.GPU
237
  def auto_process_dataset():
238
  """
239
  Auto-process TXT files from Monarchtaba22/rawAffirmation
 
515
  return current_status + " 🔄"
516
  return current_status
517
 
518
+ @spaces.GPU
519
  def manual_generate(text, reference_audio, emotion_audio, emo_alpha, use_emo_text):
520
  """Manual TTS generation"""
521
  global tts_model
requirements.txt CHANGED
@@ -30,6 +30,7 @@ tqdm>=4.67.1
30
  transformers==4.52.1
31
  gradio==5.45.0
32
  huggingface_hub
 
33
 
34
  # Text processing for different platforms
35
  wetext>=0.0.9; sys_platform != 'linux'
 
30
  transformers==4.52.1
31
  gradio==5.45.0
32
  huggingface_hub
33
+ spaces
34
 
35
  # Text processing for different platforms
36
  wetext>=0.0.9; sys_platform != 'linux'