Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def predict_performance(Year, Instagram_Advertising, Facebook_Advertising, Event
|
|
45 |
prediction = model.predict(scaled_input)[0]
|
46 |
|
47 |
# Return the result as HTML with custom styling (green color and larger font)
|
48 |
-
return f'<p style="font-size: 24px; color: green;">Forecast
|
49 |
|
50 |
# Create the Gradio app
|
51 |
iface = gr.Interface(
|
@@ -59,7 +59,7 @@ iface = gr.Interface(
|
|
59 |
],
|
60 |
outputs=gr.HTML(), # Specify the output as HTML
|
61 |
title="Student Admission Forecast",
|
62 |
-
description="
|
63 |
)
|
64 |
|
65 |
# Run the app
|
|
|
45 |
prediction = model.predict(scaled_input)[0]
|
46 |
|
47 |
# Return the result as HTML with custom styling (green color and larger font)
|
48 |
+
return f'<p style="font-size: 24px; color: green;">Forecast no of. Students admission: {prediction:,.0f}</p>'
|
49 |
|
50 |
# Create the Gradio app
|
51 |
iface = gr.Interface(
|
|
|
59 |
],
|
60 |
outputs=gr.HTML(), # Specify the output as HTML
|
61 |
title="Student Admission Forecast",
|
62 |
+
description="Forecast of chances of student admission based on marketing expenditures"
|
63 |
)
|
64 |
|
65 |
# Run the app
|