459b646 e07eaa5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)