Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,8 @@ async def synthesize(request: Request):
|
|
| 37 |
|
| 38 |
print("generating mel-spectrogram")
|
| 39 |
# Generate mel-spectrogram using Tacotron2
|
| 40 |
-
mel_output_data, mel_output_postnet_data, alignments_data = synthesize_voice(input_text, "Shruti_finetuned.pt")
|
|
|
|
| 41 |
print("mel generation successful")
|
| 42 |
|
| 43 |
# Convert mel-spectrogram to base64 for display in HTML
|
|
|
|
| 37 |
|
| 38 |
print("generating mel-spectrogram")
|
| 39 |
# Generate mel-spectrogram using Tacotron2
|
| 40 |
+
# mel_output_data, mel_output_postnet_data, alignments_data = synthesize_voice(input_text, "Shruti_finetuned.pt")
|
| 41 |
+
mel_output_data, mel_output_postnet_data, alignments_data = synthesize_voice(input_text, "kaggle_12000.pt")
|
| 42 |
print("mel generation successful")
|
| 43 |
|
| 44 |
# Convert mel-spectrogram to base64 for display in HTML
|