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

qModel = pickle.load('q-learning.pkl')

def predit_next_question(state):
    return qModel.predict(state)

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