Spaces:
Runtime error
Runtime error
0.43 model info
Browse files
app.py
CHANGED
|
@@ -29,12 +29,18 @@ htmL_info = "<center><h1>Pharia Battle Royale</h1><p>Let the games begin: Try a
|
|
| 29 |
model_info = [{"id": "Aleph-Alpha/Pharia-1-LLM-7B-control-hf",
|
| 30 |
"name": "Pharia 1 LLM 7B control hf"}]
|
| 31 |
|
|
|
|
|
|
|
| 32 |
challenger_models = [{"id": "NousResearch/Meta-Llama-3.1-8B-Instruct",
|
| 33 |
"name": "Meta Llama 3.1 8B Instruct"},
|
| 34 |
{"id": "mistralai/Mistral-7B-Instruct-v0.3",
|
| 35 |
"name": "Mistral 7B Instruct v0.3"}]
|
| 36 |
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
shuffle(model_info)
|
| 39 |
logging.debug(f'models shuffled. model[0]: {model_info[0]['name']}, model[1]: {model_info[1]['name']}')
|
| 40 |
|
|
|
|
| 29 |
model_info = [{"id": "Aleph-Alpha/Pharia-1-LLM-7B-control-hf",
|
| 30 |
"name": "Pharia 1 LLM 7B control hf"}]
|
| 31 |
|
| 32 |
+
logging.debug(f'model_info: {model_info[0]['name']}')
|
| 33 |
+
|
| 34 |
challenger_models = [{"id": "NousResearch/Meta-Llama-3.1-8B-Instruct",
|
| 35 |
"name": "Meta Llama 3.1 8B Instruct"},
|
| 36 |
{"id": "mistralai/Mistral-7B-Instruct-v0.3",
|
| 37 |
"name": "Mistral 7B Instruct v0.3"}]
|
| 38 |
|
| 39 |
+
challenger_model = choice(challenger_models)
|
| 40 |
+
logging.debug(f'challenger_model: {challenger_model['name']}')
|
| 41 |
+
|
| 42 |
+
model_info.append(challenger_model)
|
| 43 |
+
|
| 44 |
shuffle(model_info)
|
| 45 |
logging.debug(f'models shuffled. model[0]: {model_info[0]['name']}, model[1]: {model_info[1]['name']}')
|
| 46 |
|