MariaKaiser commited on
Commit
e06d89a
·
verified ·
1 Parent(s): bad4f9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -67,7 +67,7 @@ class SentenceDto(BaseModel):
67
  sentence: str
68
  prosodyReference: str
69
  emotion: str
70
- intensity: int
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
- 1: "low",
318
- 2: "mid",
319
- 3: "high"
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