demo commited on
Commit
c05bbbd
·
verified ·
1 Parent(s): 72f2b38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
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
- 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()
 
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()