VictorSanh commited on
Commit
da21fe6
β€’
1 Parent(s): 10e2d68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -190,7 +190,11 @@ h1{display: flex;align-items: center;justify-content: center;gap: .25em}
190
 
191
  with gr.Blocks(title="Beat the AI", theme=gr.themes.Base(), css=css) as demo:
192
  gr.Markdown(
193
- "Are you smarter than the AI?"
 
 
 
 
194
  )
195
  load_new_sample = gr.Button(value="Load new sample")
196
  with gr.Row(equal_height=True):
@@ -226,7 +230,7 @@ with gr.Blocks(title="Beat the AI", theme=gr.themes.Base(), css=css) as demo:
226
  result.render()
227
 
228
  def result_string(model_pred, user_pred, solution):
229
- solution_letter = chr(ord('A') + int(z))
230
  solution_string = f"The correct answer is f{solution_letter}."
231
 
232
  win_or_loose = "πŸ₯‡" if user_pred == solution_letter else "πŸ™ˆ"
 
190
 
191
  with gr.Blocks(title="Beat the AI", theme=gr.themes.Base(), css=css) as demo:
192
  gr.Markdown(
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
  )
199
  load_new_sample = gr.Button(value="Load new sample")
200
  with gr.Row(equal_height=True):
 
230
  result.render()
231
 
232
  def result_string(model_pred, user_pred, solution):
233
+ solution_letter = chr(ord('A') + int(solution))
234
  solution_string = f"The correct answer is f{solution_letter}."
235
 
236
  win_or_loose = "πŸ₯‡" if user_pred == solution_letter else "πŸ™ˆ"