svalcin commited on
Commit
608b829
1 Parent(s): 1a627f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,11 +23,12 @@ class QModel():
23
 
24
  learner = pickle.load(open("q-learn-multiply-game.pkl", "rb"))
25
 
26
- def predict_next_questions(state, n):
 
27
  return learner.predict(state,n)
28
 
29
 
30
- intf = gr.Interface(fn=predict_next_questions, inputs=["number","number"], outputs=["number","number"])
31
 
32
  intf.launch()
33
 
 
23
 
24
  learner = pickle.load(open("q-learn-multiply-game.pkl", "rb"))
25
 
26
+ def predict_next_questions(state, n=1):
27
+
28
  return learner.predict(state,n)
29
 
30
 
31
+ intf = gr.Interface(fn=predict_next_questions, inputs="number", outputs="number")
32
 
33
  intf.launch()
34