Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -133,9 +133,9 @@ def run_voice_clone_tts( | |
| 133 |  | 
| 134 | 
             
                    # 1. Preprocess using Processor
         | 
| 135 | 
             
                    inputs = processor(
         | 
| 136 | 
            -
                        text=text,
         | 
| 137 | 
             
                        prompt_speech_path=prompt_speech_path,
         | 
| 138 | 
            -
                        prompt_text=prompt_text_clean,
         | 
| 139 | 
             
                        return_tensors="pt"
         | 
| 140 | 
             
                    ).to(device) # Move processor output to model device
         | 
| 141 |  | 
| @@ -205,7 +205,7 @@ def run_voice_creation_tts( | |
| 205 | 
             
                try:
         | 
| 206 | 
             
                    # 1. Preprocess
         | 
| 207 | 
             
                    inputs = processor(
         | 
| 208 | 
            -
                        text=text,
         | 
| 209 | 
             
                        # prompt_speech_path=None, # No audio prompt for creation
         | 
| 210 | 
             
                        # prompt_text=None,       # No text prompt for creation
         | 
| 211 | 
             
                        gender=gender,
         | 
|  | |
| 133 |  | 
| 134 | 
             
                    # 1. Preprocess using Processor
         | 
| 135 | 
             
                    inputs = processor(
         | 
| 136 | 
            +
                        text=text.lower(),
         | 
| 137 | 
             
                        prompt_speech_path=prompt_speech_path,
         | 
| 138 | 
            +
                        prompt_text=prompt_text_clean.lower(),
         | 
| 139 | 
             
                        return_tensors="pt"
         | 
| 140 | 
             
                    ).to(device) # Move processor output to model device
         | 
| 141 |  | 
|  | |
| 205 | 
             
                try:
         | 
| 206 | 
             
                    # 1. Preprocess
         | 
| 207 | 
             
                    inputs = processor(
         | 
| 208 | 
            +
                        text=text.lower(),
         | 
| 209 | 
             
                        # prompt_speech_path=None, # No audio prompt for creation
         | 
| 210 | 
             
                        # prompt_text=None,       # No text prompt for creation
         | 
| 211 | 
             
                        gender=gender,
         | 
