Jonas Wiesli commited on
Commit
558f04c
1 Parent(s): a803285

get label text instead of dict

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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
- print(prevText)
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