Spaces:
Paused
Paused
Update admin_routes.py
Browse files- admin_routes.py +3 -1
admin_routes.py
CHANGED
|
@@ -481,7 +481,8 @@ async def get_environment(username: str = Depends(verify_token)):
|
|
| 481 |
"use_enhanced": True,
|
| 482 |
"enable_punctuation": True,
|
| 483 |
"interim_results": True
|
| 484 |
-
})
|
|
|
|
| 485 |
}
|
| 486 |
|
| 487 |
@router.put("/environment")
|
|
@@ -550,6 +551,7 @@ async def update_environment(
|
|
| 550 |
config["config"]["stt_engine_api_key"] = encrypted_stt_key
|
| 551 |
config["config"]["last_update_date"] = get_timestamp()
|
| 552 |
config["config"]["last_update_user"] = username
|
|
|
|
| 553 |
|
| 554 |
if update.tts_settings:
|
| 555 |
config["config"]["tts_settings"] = update.tts_settings
|
|
|
|
| 481 |
"use_enhanced": True,
|
| 482 |
"enable_punctuation": True,
|
| 483 |
"interim_results": True
|
| 484 |
+
}),
|
| 485 |
+
"parameter_collection_config": env_config.get("parameter_collection_config", {})
|
| 486 |
}
|
| 487 |
|
| 488 |
@router.put("/environment")
|
|
|
|
| 551 |
config["config"]["stt_engine_api_key"] = encrypted_stt_key
|
| 552 |
config["config"]["last_update_date"] = get_timestamp()
|
| 553 |
config["config"]["last_update_user"] = username
|
| 554 |
+
config["config"]["parameter_collection_config"] = update.parameter_collection_config
|
| 555 |
|
| 556 |
if update.tts_settings:
|
| 557 |
config["config"]["tts_settings"] = update.tts_settings
|