File size: 407 Bytes
24e2f4c
800835b
 
 
 
 
 
 
 
e9560d6
 
800835b
76207fc
800835b
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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.Textbox(lines=2, placeholder="Enter your input here...")
output_component = gr.Textbox()

iface = gr.Interface(fn=input_component, inputs=input_component, outputs=output_component, title="OYI")

if __name__ == "__main__":
    iface.launch()