Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -63,6 +63,14 @@ async def read_root(request: Request):
|
|
63 |
# Make sure speaker_id_map is defined and populated correctly
|
64 |
# data = {"your_data_key": "your_data_value"} # Replace with your data
|
65 |
# model_configurations = {} # Replace with your model configurations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
# Ensure that speaker_id_map is included in the context
|
68 |
return templates.TemplateResponse("interface.html", {"request": request, "data": data, "model_names": model_configurations.keys(), "speaker_id_map": speaker_id_map})
|
|
|
63 |
# Make sure speaker_id_map is defined and populated correctly
|
64 |
# data = {"your_data_key": "your_data_value"} # Replace with your data
|
65 |
# model_configurations = {} # Replace with your model configurations
|
66 |
+
model_configurations = {} # Replace with your model configurations
|
67 |
+
|
68 |
+
# Define and populate speaker_id_map
|
69 |
+
speaker_id_map = {
|
70 |
+
"speaker1": "Speaker 1 Name",
|
71 |
+
"speaker2": "Speaker 2 Name",
|
72 |
+
# Add more speaker IDs and names as needed
|
73 |
+
}
|
74 |
|
75 |
# Ensure that speaker_id_map is included in the context
|
76 |
return templates.TemplateResponse("interface.html", {"request": request, "data": data, "model_names": model_configurations.keys(), "speaker_id_map": speaker_id_map})
|