ajitrajasekharan commited on
Commit
d549833
·
1 Parent(s): 3f2b07b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -89,13 +89,13 @@ def run_test(sent,top_k,model_name):
89
  if start is not None:
90
  st.text(f"prediction took {time.time() - start:.2f}s")
91
 
92
- def on_text_change():
93
- global input_text,top_k,model_name
94
- run_test(input_text,top_k,model_name)
95
 
96
- def on_option_change():
97
- global option,top_k,model_name
98
- run_test(option,top_k,model_name)
99
 
100
 
101
  def init_selectbox():
 
89
  if start is not None:
90
  st.text(f"prediction took {time.time() - start:.2f}s")
91
 
92
+ def on_text_change(text):
93
+ global top_k,model_name
94
+ run_test(text,top_k,model_name)
95
 
96
+ def on_option_change(text):
97
+ global top_k,model_name
98
+ run_test(text,top_k,model_name)
99
 
100
 
101
  def init_selectbox():