pavanmutha commited on
Commit
111530c
·
verified ·
1 Parent(s): 5bf1891

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -18
app.py CHANGED
@@ -96,24 +96,23 @@ def format_analysis_report(raw_output, visuals, metrics=None, explainability_plo
96
  </div>
97
  """
98
 
99
- # Hyperparameters section
100
- hyperparams_section = ""
101
- if hyperparams:
102
- hyperparams_section = f"""
103
- <div style="margin-top: 25px; background: #f8f9fa; padding: 20px; border-radius: 8px;">
104
- <h2 style="color: #2B547E;">⚙️ Model Hyperparameters</h2>
105
- <div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px;">
106
- {''.join([
107
- f""
108
- <div style="background: white; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);">
109
- <h3 style="margin: 0 0 10px 0; color: #4A708B;">{key.replace('_', ' ').title()}</h3>
110
- <p style="font-size: 18px; margin: 0;">{value}</p>
111
- </div>
112
- """ for key, value in hyperparams.items()
113
- ])}
114
- </div>
115
- </div>
116
- """
117
 
118
  # Explainability section
119
  explainability_section = ""
 
96
  </div>
97
  """
98
 
99
+ hyperparams_items = ''.join([
100
+ f"""
101
+ <div style="background: white; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);">
102
+ <h3 style="margin: 0 0 10px 0; color: #4A708B;">{key.replace('_', ' ').title()}</h3>
103
+ <p style="font-size: 18px; margin: 0;">{value}</p>
104
+ </div>
105
+ """ for key, value in hyperparams.items()
106
+ ])
107
+
108
+ hyperparams_section = f"""
109
+ <div style="margin-top: 25px; background: #f8f9fa; padding: 20px; border-radius: 8px;">
110
+ <h2 style="color: #2B547E;">⚙️ Model Hyperparameters</h2>
111
+ <div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px;">
112
+ {hyperparams_items}
113
+ </div>
114
+ </div>
115
+ """
 
116
 
117
  # Explainability section
118
  explainability_section = ""