| 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) |
| 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) |