adamtayzzz commited on
Commit
b971f22
1 Parent(s): cab0f57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ classifier = MyClassifier(model,tokenizer,label_list,output_mode,exit_type,exit_
64
 
65
  def greet(text,text2,exit_pos):
66
  text_input = [(text,text2)]
67
- classifier.get_prob_time(text_input,exit_position=exit_pos)
68
 
69
  iface = gr.Interface(fn=greet, inputs=["text","text","number"], outputs="text")
70
  iface.launch()
 
64
 
65
  def greet(text,text2,exit_pos):
66
  text_input = [(text,text2)]
67
+ classifier.get_prob_time(text_input,exit_position=int(exit_pos))
68
 
69
  iface = gr.Interface(fn=greet, inputs=["text","text","number"], outputs="text")
70
  iface.launch()