Spaces:
Sleeping
Sleeping
demo
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -51,19 +51,19 @@ def predict_performance(Year, Instagram_Advertising, Facebook_Advertising, Event
|
|
51 |
|
52 |
def create_demo():
|
53 |
# Create the Gradio app
|
54 |
-
demo = gr.Interface(
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
)
|
67 |
-
demo.launch(auth=("admin", "Gr@ce")
|
68 |
|
69 |
create_demo()
|
|
|
51 |
|
52 |
def create_demo():
|
53 |
# Create the Gradio app
|
54 |
+
demo = gr.Interface(
|
55 |
+
fn=predict_performance,
|
56 |
+
inputs=[
|
57 |
+
gr.Slider(minimum=2024, maximum=2025, step=1, label="Year",info="The forecasted Year"),
|
58 |
+
gr.Slider(minimum=10000, maximum=45000, step=500, label="Instagram_Advertising", info="How much do you spend on Instagram ads Yearly($)?"),
|
59 |
+
gr.Slider(minimum=10000, maximum=75000, step=500, label="Facebook_Advertising", info="How much do you spend on Facebook ads Yearly($)?"),
|
60 |
+
gr.Slider(minimum=20000, maximum=100000, step=500, label="Event_Expenses", info="What’s your typical budget for events($)?"),
|
61 |
+
gr.Slider(minimum=5000, maximum=45000, step=500, label="Internet_Expenses", info="How much do you spend on internet Yearly($)?")
|
62 |
+
],
|
63 |
+
outputs=gr.HTML(), # Specify the output as HTML
|
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()
|