Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,12 +11,13 @@ class QModel():
|
|
11 |
return np.argsort(self.qtable[state_n][:])[-n:]
|
12 |
|
13 |
learner = pickle.load(open("q-learn-multiply-game.pkl", "rb"))
|
14 |
-
print("learner uploaded")
|
15 |
|
16 |
def predict_next_questions(state,n_question):
|
17 |
return learner.predict(state, n_questions)
|
18 |
|
|
|
19 |
intf = gr.Interface(fn=predict_next_questions, inputs=["number", "number"], outputs="number")
|
|
|
20 |
intf.launch
|
21 |
|
22 |
|
|
|
11 |
return np.argsort(self.qtable[state_n][:])[-n:]
|
12 |
|
13 |
learner = pickle.load(open("q-learn-multiply-game.pkl", "rb"))
|
|
|
14 |
|
15 |
def predict_next_questions(state,n_question):
|
16 |
return learner.predict(state, n_questions)
|
17 |
|
18 |
+
|
19 |
intf = gr.Interface(fn=predict_next_questions, inputs=["number", "number"], outputs="number")
|
20 |
+
print("interface created")
|
21 |
intf.launch
|
22 |
|
23 |
|