# Step 9: Create a Gradio interface | |
iface = gr.Interface( | |
fn=predict_rooms, | |
inputs="number", | |
outputs="number", | |
title="Number of Rooms Predictor", | |
description="Enter the population to predict the number of rooms needed." | |
) | |
# Step 10: Launch the Gradio interface | |
iface.launch() |