Spaces:
Runtime error
Runtime error
File size: 256 Bytes
6f78316 a227a77 6f78316 229e4b2 6f78316 a227a77 6f78316 |
1 2 3 4 5 6 7 8 9 |
import pickle
import gradio as gr
def dialect_pred(text):
loaded_model = pickle.load(open('./dialect_model.sav', 'rb'))
return loaded_model.predict([text])[0]
demo = gr.Interface(fn=dialect_pred, inputs="text",outputs= ["text"])
demo.launch() |