Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
import pickle
|
3 |
|
4 |
-
|
5 |
|
6 |
-
def
|
7 |
-
return
|
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
|