Spaces:
Runtime error
Runtime error
0.64 Copy tweaks
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ system_prompts = {
|
|
| 30 |
"Spanish": "Eres un chatbot servicial que responde a las entradas de los usuarios de forma concisa y original."
|
| 31 |
}
|
| 32 |
|
| 33 |
-
htmL_info = "<center><h1>⚔️ Pharia Bot Battle</h1><p><big>Let the games begin: In this arena, the Pharia 1 model competes against
|
| 34 |
|
| 35 |
model_info = [{"id": "Aleph-Alpha/Pharia-1-LLM-7B-control-hf",
|
| 36 |
"name": "Pharia 1 LLM 7B control hf"}]
|
|
@@ -265,19 +265,18 @@ def handle_vote(selection, chatbot_a, chatbot_b):
|
|
| 265 |
if selection == "Bot A kicks ass!":
|
| 266 |
chatbot_a.append(["🏆", f"Thanks, man. I am {chatbot_a_name}"])
|
| 267 |
chatbot_b.append(["💩", f"Pffff … I am {chatbot_b_name}"])
|
| 268 |
-
chatbot_a_vote = "
|
| 269 |
-
chatbot_b_vote = "
|
| 270 |
elif selection == "Bot B crushes it!":
|
| 271 |
chatbot_a.append(["🤡", f"Rigged … I am {chatbot_a_name}"])
|
| 272 |
chatbot_b.append(["🥇", f"Well deserved! I am {chatbot_b_name}"])
|
| 273 |
-
chatbot_a_vote = "
|
| 274 |
-
chatbot_b_vote = "
|
| 275 |
else:
|
| 276 |
chatbot_a.append(["🤝", f"Lame … I am {chatbot_a_name}"])
|
| 277 |
chatbot_b.append(["🤝", f"Dunno. I am {chatbot_b_name}"])
|
| 278 |
-
chatbot_a_vote = "
|
| 279 |
-
chatbot_b_vote = "
|
| 280 |
-
logging.debug(f'Casting vote: {chatbot_a_name}: {chatbot_a_vote}, {chatbot_b_name}: {chatbot_b_vote}')
|
| 281 |
|
| 282 |
try:
|
| 283 |
# chatbot_a[-1][1] Second index of last in list
|
|
|
|
| 30 |
"Spanish": "Eres un chatbot servicial que responde a las entradas de los usuarios de forma concisa y original."
|
| 31 |
}
|
| 32 |
|
| 33 |
+
htmL_info = "<center><h1>⚔️ Pharia Bot Battle</h1><p><big>Let the games begin: In this arena, the <a href='https://huggingface.co/Aleph-Alpha/Pharia-1-LLM-7B-control-hf'>Pharia 1 model</a> competes against secret challengers of comparable size.</p><ul><li>Try a prompt in a language you want to explore</li><li>Set the parameters and vote for the best answers</li><li>After casting your vote, both bots reveal their identity</li><p>Please note that inputs, outputs and votes are logged anonymously. Feel free to use the bot if you’re cool with that!</p></big></center>"
|
| 34 |
|
| 35 |
model_info = [{"id": "Aleph-Alpha/Pharia-1-LLM-7B-control-hf",
|
| 36 |
"name": "Pharia 1 LLM 7B control hf"}]
|
|
|
|
| 265 |
if selection == "Bot A kicks ass!":
|
| 266 |
chatbot_a.append(["🏆", f"Thanks, man. I am {chatbot_a_name}"])
|
| 267 |
chatbot_b.append(["💩", f"Pffff … I am {chatbot_b_name}"])
|
| 268 |
+
chatbot_a_vote = "Winner"
|
| 269 |
+
chatbot_b_vote = "Looser"
|
| 270 |
elif selection == "Bot B crushes it!":
|
| 271 |
chatbot_a.append(["🤡", f"Rigged … I am {chatbot_a_name}"])
|
| 272 |
chatbot_b.append(["🥇", f"Well deserved! I am {chatbot_b_name}"])
|
| 273 |
+
chatbot_a_vote = "Looser"
|
| 274 |
+
chatbot_b_vote = "Winner"
|
| 275 |
else:
|
| 276 |
chatbot_a.append(["🤝", f"Lame … I am {chatbot_a_name}"])
|
| 277 |
chatbot_b.append(["🤝", f"Dunno. I am {chatbot_b_name}"])
|
| 278 |
+
chatbot_a_vote = "Draw"
|
| 279 |
+
chatbot_b_vote = "Draw"
|
|
|
|
| 280 |
|
| 281 |
try:
|
| 282 |
# chatbot_a[-1][1] Second index of last in list
|