Ci-Dave commited on
Commit
bf2932a
·
1 Parent(s): 00ac429
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -90,7 +90,6 @@ if uploaded_file is not None:
90
  with col1:
91
  st.image(edges, caption=f"{edge_method} Edge Detection", use_container_width=True) # Display the edge detection result
92
  with col2:
93
- st.write("### Explanation") # Show explanation header
94
  explanation = explain_ai(f"Explain how {edge_method} edge detection works in computer vision.") # Get explanation from AI
95
  st.text_area("Explanation", explanation, height=300) # Display explanation in a text area
96
 
@@ -113,7 +112,6 @@ if uploaded_file is not None:
113
  with col1:
114
  st.image(segmented, caption=f"{seg_method} Segmentation", use_container_width=True) # Display segmentation result
115
  with col2:
116
- st.write("### Explanation") # Show explanation header
117
  explanation = explain_ai(f"Explain how {seg_method} segmentation works in image processing.") # Get explanation from AI
118
  st.text_area("Explanation", explanation, height=300) # Display explanation in a text area
119
 
@@ -125,7 +123,6 @@ if uploaded_file is not None:
125
  with col1:
126
  st.image(hog_image, caption="HOG Features", use_container_width=True) # Display HOG feature image
127
  with col2:
128
- st.write("### Explanation") # Show explanation header
129
  explanation = explain_ai("Explain how Histogram of Oriented Gradients (HOG) feature extraction works.") # Get explanation from AI
130
  st.text_area("Explanation", explanation, height=300) # Display explanation in a text area
131
 
@@ -149,6 +146,5 @@ if uploaded_file is not None:
149
  with col1:
150
  st.image(predictions, caption=f"{model_choice} Pixel Classification", use_container_width=True) # Display classification result
151
  with col2:
152
- st.write("### Explanation") # Show explanation header
153
  explanation = explain_ai(f"Explain how {model_choice} is used for image classification.") # Get explanation from AI
154
  st.text_area("Explanation", explanation, height=300) # Display explanation in a text area
 
90
  with col1:
91
  st.image(edges, caption=f"{edge_method} Edge Detection", use_container_width=True) # Display the edge detection result
92
  with col2:
 
93
  explanation = explain_ai(f"Explain how {edge_method} edge detection works in computer vision.") # Get explanation from AI
94
  st.text_area("Explanation", explanation, height=300) # Display explanation in a text area
95
 
 
112
  with col1:
113
  st.image(segmented, caption=f"{seg_method} Segmentation", use_container_width=True) # Display segmentation result
114
  with col2:
 
115
  explanation = explain_ai(f"Explain how {seg_method} segmentation works in image processing.") # Get explanation from AI
116
  st.text_area("Explanation", explanation, height=300) # Display explanation in a text area
117
 
 
123
  with col1:
124
  st.image(hog_image, caption="HOG Features", use_container_width=True) # Display HOG feature image
125
  with col2:
 
126
  explanation = explain_ai("Explain how Histogram of Oriented Gradients (HOG) feature extraction works.") # Get explanation from AI
127
  st.text_area("Explanation", explanation, height=300) # Display explanation in a text area
128
 
 
146
  with col1:
147
  st.image(predictions, caption=f"{model_choice} Pixel Classification", use_container_width=True) # Display classification result
148
  with col2:
 
149
  explanation = explain_ai(f"Explain how {model_choice} is used for image classification.") # Get explanation from AI
150
  st.text_area("Explanation", explanation, height=300) # Display explanation in a text area