File size: 297 Bytes
0443094
 
 
f4785ce
0443094
dfcca9d
 
0443094
dfcca9d
0443094
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
import pickle

qModel = pickle.load(open('/home/user/app/q-learning.pkl', 'rb'))

def predit_next_questions(state,n_question):
    return qModel.predict(state, n_questions)

intf = gr.Interface(fn=predict_next_questions, inputs="number", outputs="number")
intf.launch