jithenderchoudary commited on
Commit
5d0447a
·
verified ·
1 Parent(s): e47d095

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -14,6 +14,16 @@ st.write(f"Tool dimensions: {tool_width}mm x {tool_height}mm")
14
  model = joblib.load('models/defect_model.pkl')
15
  st.title("AI-Driven Press Tool Defect Predictor & Optimizer")
16
  # Input Form
 
 
 
 
 
 
 
 
 
 
17
  with st.form("Input Parameters"):
18
  tool_width = st.number_input("Tool Width (mm)", value=50)
19
  tool_height = st.number_input("Tool Height (mm)", value=20)
 
14
  model = joblib.load('models/defect_model.pkl')
15
  st.title("AI-Driven Press Tool Defect Predictor & Optimizer")
16
  # Input Form
17
+ import streamlit as st
18
+
19
+ # Example of a correct 'with' statement usage
20
+ with st.sidebar:
21
+ tool_width = st.number_input("Tool Width (mm)", value=50) # Indented properly
22
+ tool_height = st.number_input("Tool Height (mm)", value=20) # Also indented properly
23
+
24
+ # Code outside the 'with' block
25
+ st.write(f"Tool dimensions: {tool_width}mm x {tool_height}mm")
26
+
27
  with st.form("Input Parameters"):
28
  tool_width = st.number_input("Tool Width (mm)", value=50)
29
  tool_height = st.number_input("Tool Height (mm)", value=20)