Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ class QModel():
|
|
8 |
|
9 |
#returns the top n states
|
10 |
def predict(self,state_n):
|
11 |
-
|
12 |
np.argmax(self.qtable[state_n])
|
13 |
|
14 |
learner = pickle.load(open("q-learn-multiply-game.pkl", "rb"))
|
@@ -18,7 +18,7 @@ def predict_next_questions(state):
|
|
18 |
|
19 |
|
20 |
intf = gr.Interface(fn=predict_next_questions, inputs="number", outputs="number")
|
21 |
-
|
22 |
intf.launch()
|
23 |
|
24 |
|
|
|
8 |
|
9 |
#returns the top n states
|
10 |
def predict(self,state_n):
|
11 |
+
print(self.qtable)
|
12 |
np.argmax(self.qtable[state_n])
|
13 |
|
14 |
learner = pickle.load(open("q-learn-multiply-game.pkl", "rb"))
|
|
|
18 |
|
19 |
|
20 |
intf = gr.Interface(fn=predict_next_questions, inputs="number", outputs="number")
|
21 |
+
|
22 |
intf.launch()
|
23 |
|
24 |
|