MultiplyGame / app.py
svalcin's picture
Update app.py
6a0ae8e
raw
history blame
282 Bytes
import gradio as gr
import pickle
model = pickle.load(open('/q-learning.pkl', 'rb'))
def predict_next_questions(state,n_question):
return model.predict(state, n_questions)
intf = gr.Interface(fn=predict_next_questions, inputs="number", outputs="number")
intf.launch