Adilzhan commited on
Commit
e695460
Β·
1 Parent(s): c49b726

fix some bugs

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -392,9 +392,9 @@ def predict_single(file, model_choice):
392
  preview_html = f"""
393
  <div style="background: #f5f5f5; padding: 20px; border-radius: 10px; margin-top: 20px;">
394
  <h3 style="color: #333; margin-top: 0;">πŸ“‹ Input Data Summary</h3>
395
- <p style="color: #666;"><strong>Sample ID:</strong> {id_value}</p>
396
- <p style="color: #666;"><strong>Features:</strong> {len(df.columns)} columns loaded</p>
397
- <p style="color: #666;"><strong>Model:</strong> {model_choice}</p>
398
  </div>
399
  """
400
 
@@ -715,12 +715,12 @@ with gr.Blocks(css=custom_css, title="🌍 Exoplanet Classifier", theme=gr.theme
715
  border-radius: 10px; border-left: 5px solid #ff9800; margin-bottom: 15px;">
716
  <h3 style="color: #e65100; margin: 0 0 10px 0;">πŸ“Œ CSV Format Requirements</h3>
717
  <ul style="color: #5d4037; line-height: 1.8; margin: 0;">
718
- <li>Your CSV must contain <strong>all 52 required feature columns</strong> listed in the table below</li>
719
- <li>Column names must <strong>exactly match</strong> the names shown (case-sensitive)</li>
720
- <li>Optionally include an ID column (<code>id</code>, <code>toi</code>, or <code>tid</code>) to track your samples</li>
721
- <li>Use <code>0</code> or leave empty for unknown/missing values (will be imputed automatically)</li>
722
- <li>Each row represents one exoplanet candidate to classify</li>
723
- <li>Can process multiple samples at once (no row limit)</li>
724
  </ul>
725
  </div>
726
  """)
 
392
  preview_html = f"""
393
  <div style="background: #f5f5f5; padding: 20px; border-radius: 10px; margin-top: 20px;">
394
  <h3 style="color: #333; margin-top: 0;">πŸ“‹ Input Data Summary</h3>
395
+ <p style="color: black;"><strong>Sample ID:</strong> {id_value}</p>
396
+ <p style="color: black;"><strong>Features:</strong> {len(df.columns)} columns loaded</p>
397
+ <p style="color: black;"><strong>Model:</strong> {model_choice}</p>
398
  </div>
399
  """
400
 
 
715
  border-radius: 10px; border-left: 5px solid #ff9800; margin-bottom: 15px;">
716
  <h3 style="color: #e65100; margin: 0 0 10px 0;">πŸ“Œ CSV Format Requirements</h3>
717
  <ul style="color: #5d4037; line-height: 1.8; margin: 0;">
718
+ <li style="color: black;">Your CSV must contain <strong style="color: black;">all 52 required feature columns</strong> listed in the table below</li>
719
+ <li style="color: black;">Column names must <strong style="color: black;">exactly match</strong> the names shown (case-sensitive)</li>
720
+ <li style="color: black;">Optionally include an ID column (<code>id</code>, <code>toi</code>, or <code>tid</code>) to track your samples</li>
721
+ <li style="color: black;">Use <code>0</code> or leave empty for unknown/missing values (will be imputed automatically)</li>
722
+ <li style="color: black;">Each row represents one exoplanet candidate to classify</li>
723
+ <li style="color: black;">Can process multiple samples at once (no row limit)</li>
724
  </ul>
725
  </div>
726
  """)