Obotu commited on
Commit
800835b
·
verified ·
1 Parent(s): d108d74

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio
2
+ import pickle
3
+
4
+ def load_model():
5
+ with open('svc.pkl', 'rb') as file:
6
+ model = pickle.load(file)
7
+ return model
8
+
9
+
10
+ input_component = gr.inputs.Textbox(lines=2, placeholder="Enter your input here...")
11
+ output_component = gr.outputs.Textbox()
12
+
13
+ iface = gr.Interface(fn=predict, inputs=input_component, outputs=output_component, title="OYI")
14
+
15
+ if __name__ == "__main__":
16
+ iface.launch()