sashavor commited on
Commit
2e4f4c8
·
1 Parent(s): 31e8d7f

changing text

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -61,10 +61,10 @@ def check_score(pred, truth, current_score, total_score, has_guessed):
61
  else:
62
  if pred is not None:
63
  total_score +=1
64
- return current_score, f"Your score is {current_score} out of {total_score}", total_score
65
  else:
66
- return current_score, f"Your score is {current_score} out of {total_score}", total_score
67
-
68
 
69
 
70
  def compare_score(userclass, prediction):
@@ -85,7 +85,7 @@ with gr.Blocks() as demo:
85
  image = gr.Image(shape=(600, 600))
86
  radio = gr.Radio(["option1", "option2", "option3"], label="Pick a category", interactive=True)
87
  with gr.Column():
88
- prediction = gr.Label(label="Model Prediction")
89
  score = gr.Label(label="Your Score")
90
  #message = gr.Text()
91
 
 
61
  else:
62
  if pred is not None:
63
  total_score +=1
64
+ return current_score, f"Your score is {current_score} out of {total_score}!", total_score
65
  else:
66
+ return current_score, f"Your score is {current_score} out of {total_score}!", total_score
67
+
68
 
69
 
70
  def compare_score(userclass, prediction):
 
85
  image = gr.Image(shape=(600, 600))
86
  radio = gr.Radio(["option1", "option2", "option3"], label="Pick a category", interactive=True)
87
  with gr.Column():
88
+ prediction = gr.Label(label="The AI predicts:")
89
  score = gr.Label(label="Your Score")
90
  #message = gr.Text()
91