svalcin commited on
Commit
6a0ae8e
1 Parent(s): f4785ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
  import pickle
3
 
4
- qModel = pickle.load(open('/home/user/app/q-learning.pkl', 'rb'))
5
 
6
- def predit_next_questions(state,n_question):
7
- return qModel.predict(state, n_questions)
8
 
9
  intf = gr.Interface(fn=predict_next_questions, inputs="number", outputs="number")
10
  intf.launch
 
1
  import gradio as gr
2
  import pickle
3
 
4
+ model = pickle.load(open('/q-learning.pkl', 'rb'))
5
 
6
+ def predict_next_questions(state,n_question):
7
+ return model.predict(state, n_questions)
8
 
9
  intf = gr.Interface(fn=predict_next_questions, inputs="number", outputs="number")
10
  intf.launch