Spaces:
Runtime error
Runtime error
VictorSanh
commited on
Commit
β’
bbeb00f
1
Parent(s):
9b48a46
Update app.py
Browse files
app.py
CHANGED
@@ -193,7 +193,7 @@ with gr.Blocks(title="Beat the AI", theme=gr.themes.Base(), css=css) as demo:
|
|
193 |
"""
|
194 |
# Will you beat the AI at these RAVEN puzzles?
|
195 |
|
196 |
-
*This demo features an early fine-tuned version of our forth-coming Idefics2 model. The model was fine-tuned on the [RAVEN](https://huggingface.co/datasets/HuggingFaceM4/RAVEN) dataset and reached 91% accuracy on the validation set.*
|
197 |
|
198 |
To get started, load a new puzzle.
|
199 |
"""
|
@@ -243,8 +243,8 @@ with gr.Blocks(title="Beat the AI", theme=gr.themes.Base(), css=css) as demo:
|
|
243 |
comparison_string = "You beat the AI!"
|
244 |
elif user_pred != solution_letter and model_pred != solution_letter:
|
245 |
comparison_string = "Both you and the AI got it wrong!"
|
246 |
-
|
247 |
-
|
248 |
|
249 |
return f"{win_or_loose} {comparison_string}\n{solution_string}"
|
250 |
|
|
|
193 |
"""
|
194 |
# Will you beat the AI at these RAVEN puzzles?
|
195 |
|
196 |
+
*This demo features an early fine-tuned version of our forth-coming Idefics2 model. The model was specifically fine-tuned on the [RAVEN](https://huggingface.co/datasets/HuggingFaceM4/RAVEN) dataset and reached 91% accuracy on the validation set.*
|
197 |
|
198 |
To get started, load a new puzzle.
|
199 |
"""
|
|
|
243 |
comparison_string = "You beat the AI!"
|
244 |
elif user_pred != solution_letter and model_pred != solution_letter:
|
245 |
comparison_string = "Both you and the AI got it wrong!"
|
246 |
+
elif user_pred != solution_letter and model_pred == solution_letter:
|
247 |
+
comparison_string = "The AI beat you!"
|
248 |
|
249 |
return f"{win_or_loose} {comparison_string}\n{solution_string}"
|
250 |
|