Spaces:
Sleeping
Sleeping
demo
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -47,6 +47,9 @@ def predict_performance(Year, Instagram_Advertising, Facebook_Advertising, Event
|
|
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(
|
52 |
fn=predict_performance,
|
@@ -61,8 +64,6 @@ iface = gr.Interface(
|
|
61 |
title="Student Admission Forecast",
|
62 |
description="Forecast of chances of student admission based on marketing expenditures"
|
63 |
)
|
|
|
64 |
|
65 |
-
|
66 |
-
# Run the app
|
67 |
-
if __name__ == "__main__":
|
68 |
-
iface.launch(auth=("admin", "Gr@ce"), share=True)
|
|
|
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 |
+
|
51 |
+
|
52 |
+
def create_demo():
|
53 |
# Create the Gradio app
|
54 |
iface = gr.Interface(
|
55 |
fn=predict_performance,
|
|
|
64 |
title="Student Admission Forecast",
|
65 |
description="Forecast of chances of student admission based on marketing expenditures"
|
66 |
)
|
67 |
+
demo.launch(auth=("admin", "Gr@ce"))
|
68 |
|
69 |
+
create_demo()
|
|
|
|
|
|