Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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 |
|