qwekuaryee
commited on
Commit
•
65afea9
1
Parent(s):
538c702
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import joblib
|
3 |
+
|
4 |
+
model=joblib.load('model.joblib')
|
5 |
+
|
6 |
+
input=gr.Numbers('Input')
|
7 |
+
output=gr.Textbox('Output')
|
8 |
+
|
9 |
+
def predict(fi):
|
10 |
+
pred=model.predict(fi)
|
11 |
+
return pred
|
12 |
+
|
13 |
+
gr.Tnterface(fn=predict,inputs=input,outputs=output).lunch()
|
14 |
+
|