Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,7 +67,7 @@ class SentenceDto(BaseModel):
|
|
| 67 |
sentence: str
|
| 68 |
prosodyReference: str
|
| 69 |
emotion: str
|
| 70 |
-
intensity:
|
| 71 |
|
| 72 |
|
| 73 |
class SceneDto(BaseModel):
|
|
@@ -314,9 +314,9 @@ def audio_to_base64(audio_path: str) -> (str, float):
|
|
| 314 |
|
| 315 |
# Map Intensity numbers to tag strings
|
| 316 |
intensity_map = {
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
}
|
| 321 |
|
| 322 |
# Map Emotion enum names to lowercase tag strings
|
|
|
|
| 67 |
sentence: str
|
| 68 |
prosodyReference: str
|
| 69 |
emotion: str
|
| 70 |
+
intensity: str
|
| 71 |
|
| 72 |
|
| 73 |
class SceneDto(BaseModel):
|
|
|
|
| 314 |
|
| 315 |
# Map Intensity numbers to tag strings
|
| 316 |
intensity_map = {
|
| 317 |
+
"LOW": "low",
|
| 318 |
+
"MEDIUM": "mid",
|
| 319 |
+
"HIGH": "high"
|
| 320 |
}
|
| 321 |
|
| 322 |
# Map Emotion enum names to lowercase tag strings
|