Update app.py
Browse files
app.py
CHANGED
|
@@ -31,17 +31,17 @@ notice_markdown = """## Chat and Compare
|
|
| 31 |
|
| 32 |
# Database connection configuration
|
| 33 |
DB_CONFIG = {
|
| 34 |
-
'dbname': os.getenv('
|
| 35 |
-
'user': os.getenv('
|
| 36 |
-
'password': os.getenv('
|
| 37 |
-
'host': os.getenv('
|
| 38 |
-
'port': os.getenv('
|
| 39 |
}
|
| 40 |
|
| 41 |
# Environment variables
|
| 42 |
-
EXPERIMENT_ID = int(os.getenv('
|
| 43 |
-
MODEL_1_ID = int(os.getenv('
|
| 44 |
-
MODEL_2_ID = int(os.getenv('
|
| 45 |
|
| 46 |
# Global variable to store the current model assignment
|
| 47 |
current_model_assignment = gr.State({})
|
|
|
|
| 31 |
|
| 32 |
# Database connection configuration
|
| 33 |
DB_CONFIG = {
|
| 34 |
+
'dbname': os.getenv('AB_TESTING_DB_NAME', 'mwk'),
|
| 35 |
+
'user': os.getenv('AB_TESTING_DB_USER', 'mwk'),
|
| 36 |
+
'password': os.getenv('AB_TESTING_DB_PASSWORD', 'pw'),
|
| 37 |
+
'host': os.getenv('AB_TESTING_DB_HOST', 'localhost'),
|
| 38 |
+
'port': os.getenv('AB_TESTING_DB_PORT', '5432'),
|
| 39 |
}
|
| 40 |
|
| 41 |
# Environment variables
|
| 42 |
+
EXPERIMENT_ID = int(os.getenv('AB_TESTING_EXPERIMENT_ID', 1))
|
| 43 |
+
MODEL_1_ID = int(os.getenv('AB_TESTING_MODEL_1_ID', 1))
|
| 44 |
+
MODEL_2_ID = int(os.getenv('AB_TESTING_MODEL_2_ID', 2))
|
| 45 |
|
| 46 |
# Global variable to store the current model assignment
|
| 47 |
current_model_assignment = gr.State({})
|