Spaces:
Sleeping
Sleeping
Jonas Wiesli
commited on
Commit
•
ecce93f
1
Parent(s):
b8ac00f
removed unnecessary condition
Browse files
app.py
CHANGED
@@ -89,10 +89,7 @@ with gr.Blocks() as iface:
|
|
89 |
def updateQuestions(prevText):
|
90 |
remainingQuestions = int(prevText["label"].split(": ")[1])
|
91 |
remainingQuestions -= 1
|
92 |
-
|
93 |
-
return "Remaining Questions: " + str(remainingQuestions)
|
94 |
-
else:
|
95 |
-
return "You've used up your questions, now choose the culprit!"
|
96 |
|
97 |
def checkIfQuestionsLeft(prevText):
|
98 |
remainingQuestions = int(prevText["label"].split(": ")[1])
|
|
|
89 |
def updateQuestions(prevText):
|
90 |
remainingQuestions = int(prevText["label"].split(": ")[1])
|
91 |
remainingQuestions -= 1
|
92 |
+
return "Remaining Questions: " + str(remainingQuestions)
|
|
|
|
|
|
|
93 |
|
94 |
def checkIfQuestionsLeft(prevText):
|
95 |
remainingQuestions = int(prevText["label"].split(": ")[1])
|