Spaces:
Running
Running
Rajkumar Pramanik "RJproz
commited on
Commit
·
21ee302
1
Parent(s):
9c0000e
bug fixes
Browse files
.DS_Store
CHANGED
|
Binary files a/.DS_Store and b/.DS_Store differ
|
|
|
app.py
CHANGED
|
@@ -138,15 +138,11 @@ def greet(name):
|
|
| 138 |
@spaces.GPU
|
| 139 |
def generate_speech(description, text, temperature, max_tokens):
|
| 140 |
"""Generate emotional speech from description and text using Transformers."""
|
|
|
|
| 141 |
try:
|
| 142 |
-
|
| 143 |
load_models()
|
| 144 |
-
|
| 145 |
-
# If using preset, override description
|
| 146 |
-
#if preset_name and preset_name in PRESET_CHARACTERS:
|
| 147 |
-
#description = PRESET_CHARACTERS[preset_name]["description"]
|
| 148 |
-
|
| 149 |
-
# Validate inputs
|
| 150 |
if not description or not text:
|
| 151 |
return None, "Error: Please provide both description and text!"
|
| 152 |
|
|
|
|
| 138 |
@spaces.GPU
|
| 139 |
def generate_speech(description, text, temperature, max_tokens):
|
| 140 |
"""Generate emotional speech from description and text using Transformers."""
|
| 141 |
+
print(f"called generate_speech")
|
| 142 |
try:
|
| 143 |
+
|
| 144 |
load_models()
|
| 145 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
if not description or not text:
|
| 147 |
return None, "Error: Please provide both description and text!"
|
| 148 |
|