Download app.py from vishwaved/fintech: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/spaces/vishwaved/fintech/resolve/main/app.py
- Command line
-
hf download hf://spaces/vishwaved/fintech/app.py
-
curl -L -o app.py https://huggingface.co/spaces/vishwaved/fintech/resolve/main/app.py
245 Bytes
| import gradio as gr | |
| import pandas as pd | |
| from sklearn.ensemble import RandomForestClassifier | |
| def predict(x): | |
| return f"Prediction: {x}" | |
| iface = gr.Interface( | |
| fn=predict, | |
| inputs="number", | |
| outputs="text" | |
| ) | |
| iface.launch(share=True) |