MaheshP98 commited on
Commit
ccc27bb
·
verified ·
1 Parent(s): 19ef25a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -226,12 +226,14 @@ with gr.Blocks(title="Budget Overrun Risk Estimator", css=custom_css) as demo:
226
  actual_spend_input = gr.Textbox(label="Actual Spend", placeholder="Enter actual spend (e.g., 5000000)")
227
  category_input = gr.Dropdown(label="Category", choices=["Civil", "Electrical", "Plumbing", "Finishing", "Others"], value="Plumbing")
228
  cement_index_input = gr.Textbox(label="Cement Index", placeholder="Enter cement index (e.g., 120)")
 
229
  labor_index_input = gr.Textbox(label="Labor Index", placeholder="Enter labor index (e.g., 30)")
 
230
  project_phase_input = gr.Dropdown(label="Project Phase", choices=["Planning", "Execution", "Closure"], value="Planning")
231
 
232
  with gr.Row():
233
  clear_button = gr.Button("Clear")
234
- submit_button = gr.Button("Submit", elem_id="submit-button") # Assign elem_id for CSS styling
235
 
236
  with gr.Column():
237
  output_text = gr.Textbox(label="Prediction Results", lines=20, max_lines=30)
 
226
  actual_spend_input = gr.Textbox(label="Actual Spend", placeholder="Enter actual spend (e.g., 5000000)")
227
  category_input = gr.Dropdown(label="Category", choices=["Civil", "Electrical", "Plumbing", "Finishing", "Others"], value="Plumbing")
228
  cement_index_input = gr.Textbox(label="Cement Index", placeholder="Enter cement index (e.g., 120)")
229
+ gr.Markdown("**Cement Index**: This reflects the current cost trend of cement compared to a baseline (e.g., 100 = average cost in a reference year). Higher values mean rising cement prices, which can increase project costs. A value above 120 flags a potential risk. Example: If the Cement Index is 130, cement costs are 30% higher than the baseline.")
230
  labor_index_input = gr.Textbox(label="Labor Index", placeholder="Enter labor index (e.g., 30)")
231
+ gr.Markdown("**Labor Index**: This reflects the current cost trend of labor compared to a baseline (e.g., 100 = average cost in a reference year). Higher values mean rising labor costs, which can increase project expenses. A value above 150 flags a potential risk. Example: If the Labor Index is 160, labor costs are 60% higher than the baseline.")
232
  project_phase_input = gr.Dropdown(label="Project Phase", choices=["Planning", "Execution", "Closure"], value="Planning")
233
 
234
  with gr.Row():
235
  clear_button = gr.Button("Clear")
236
+ submit_button = gr.Button("Submit", elem_id="submit-button")
237
 
238
  with gr.Column():
239
  output_text = gr.Textbox(label="Prediction Results", lines=20, max_lines=30)