Spaces:
Sleeping
Sleeping
Jonas Wiesli
commited on
Commit
•
558f04c
1
Parent(s):
a803285
get label text instead of dict
Browse files
app.py
CHANGED
@@ -84,8 +84,7 @@ with gr.Blocks() as iface:
|
|
84 |
return completion.choices[0].message.content
|
85 |
|
86 |
def updateQuestions(prevText):
|
87 |
-
|
88 |
-
remainingQuestions = prevText.split(": ")[1]
|
89 |
remainingQuestions -= 1
|
90 |
return "Remaining Questions: " + remainingQuestions
|
91 |
|
|
|
84 |
return completion.choices[0].message.content
|
85 |
|
86 |
def updateQuestions(prevText):
|
87 |
+
remainingQuestions = prevText["label"].split(": ")[1]
|
|
|
88 |
remainingQuestions -= 1
|
89 |
return "Remaining Questions: " + remainingQuestions
|
90 |
|