Jonas Wiesli commited on
Commit
7c5277c
1 Parent(s): f8cd34e

partially reverted remainingquestions change

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -117,15 +117,13 @@ with gr.Blocks() as iface:
117
  return "--- YOU'VE RUN OUT OF QUESTIONS, MAKE YOUR CHOICE ---"
118
 
119
  def updateQuestions(questionCounterText):
120
- print(questionCounterText)
121
- remainingQuestions = int(questionCounterText["value"])
122
  if remainingQuestions > 0:
123
  remainingQuestions -= 1
124
  return str(remainingQuestions)
125
 
126
  def checkIfQuestionsLeft(questionCounterText):
127
- print(questionCounterText)
128
- remainingQuestions = int(questionCounterText["value"])
129
  return remainingQuestions > 0
130
 
131
  def tryToSolve():
 
117
  return "--- YOU'VE RUN OUT OF QUESTIONS, MAKE YOUR CHOICE ---"
118
 
119
  def updateQuestions(questionCounterText):
120
+ remainingQuestions = int(questionCounterText["label"])
 
121
  if remainingQuestions > 0:
122
  remainingQuestions -= 1
123
  return str(remainingQuestions)
124
 
125
  def checkIfQuestionsLeft(questionCounterText):
126
+ remainingQuestions = int(questionCounterText["label"])
 
127
  return remainingQuestions > 0
128
 
129
  def tryToSolve():