Download model from Fareskh12/trial: direct link, hf CLI and curl.
- Browser
- Download file 696 Bytes
-
https://huggingface.co/spaces/Fareskh12/trial/resolve/main/model
- Command line
-
hf download hf://spaces/Fareskh12/trial/model
-
curl -L -o model https://huggingface.co/spaces/Fareskh12/trial/resolve/main/model
696 Bytes
| import gradio as gr | |
| import skops.io as sio | |
| pipe = sio.load("./Model/drug_pipeline.skops", trusted=True) | |
| def predict_drug(): | |
| predicted_drug = pipe.score() | |
| return predicted_drug | |
| outputs = [gr.Label(num_top_classes=5)] | |
| title = "Drug Classification" | |
| description = "Enter the details to correctly identify Drug type?" | |
| article = "This app is a part of the Beginner's Guide to CI/CD for Machine Learning. It teaches how to automate training, evaluation, and deployment of models to Hugging Face using GitHub Actions." | |
| gr.Interface( | |
| fn=predict_drug, | |
| outputs=outputs, | |
| title=title, | |
| description=description, | |
| article=article, | |
| theme=gr.themes.Soft(), | |
| ).launch() | |