Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
codemogul
/
tracker
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
8ce028d
tracker
/
app.py
deeksonparlma
update app.py
8ce028d
almost 2 years ago
raw
Copy download link
history
blame
226 Bytes
import
gradio
as
gr
import
pickle
loaded_model = pickle.load(
open
(
"model.pkl"
,
"rb"
))
def
greet
(
img
):
pred = loaded_model(img)
return
pred
iface = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
iface.launch()