hope / app.py
Obotu's picture
Update app.py
2bd8587 verified
raw
history blame
No virus
414 Bytes
import gradio as gr
import pickle
def load_model():
with open('svc.pkl', 'rb') as file:
model = pickle.load(file)
return model
input_component = gr.inputs.Textbox(lines=2, placeholder="Enter your input here...")
output_component = gr.outputs.Textbox()
iface = gr.Interface(fn=predict, inputs=input_component, outputs=output_component, title="OYI")
if __name__ == "__main__":
iface.launch()