Yash goyal commited on
Commit
ac5fe40
·
verified ·
1 Parent(s): 182139c

Update templates/form.html

Browse files
Files changed (1) hide show
  1. templates/form.html +10 -10
templates/form.html CHANGED
@@ -134,19 +134,19 @@
134
  </form>
135
 
136
  <!-- Result Section -->
137
- <div class="result-section" id="result-section" style="display: none; margin-top: 30px;">
138
  <h2>Diagnosis Result</h2>
139
- <div id="result-content"></div>
 
 
 
 
 
 
 
 
140
  </div>
141
 
142
- <!-- Training History Plot -->
143
- <div class="history-plot" style="margin-top: 30px; text-align: center;">
144
- <h2>Model Training History</h2>
145
- <img src="/training_plot.png" alt="Training History Plot" style="max-width: 100%; border-radius: 10px;" />
146
- </div>
147
- </div>
148
- </div>
149
- </div>
150
  </section>
151
 
152
  <footer>
 
134
  </form>
135
 
136
  <!-- Result Section -->
137
+ <div class="result-section" id="result-section" style="margin-top: 30px; {% if result %}display: block;{% else %}display: none;{% endif %}">
138
  <h2>Diagnosis Result</h2>
139
+ <div id="result-content">
140
+ {% if result %}
141
+ <p><strong>Prediction:</strong> {{ result.prediction }}</p>
142
+ <p><strong>Confidence:</strong> {{ result.confidence }}</p>
143
+ {% if result.message %}
144
+ <p class="warning-message">{{ result.message }}</p>
145
+ {% endif %}
146
+ {% endif %}
147
+ </div>
148
  </div>
149
 
 
 
 
 
 
 
 
 
150
  </section>
151
 
152
  <footer>