CelagenexResearch commited on
Commit
df441b6
ยท
verified ยท
1 Parent(s): d20d469

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -1156,10 +1156,10 @@ custom_css = """
1156
  margin-bottom: 0;
1157
  }
1158
 
1159
- /* Professional text styling with orange accents */
1160
  .question-text {
1161
  font-size: 16px !important;
1162
- color: #2d3748 !important;
1163
  line-height: 1.6 !important;
1164
  margin: 0 !important;
1165
  padding-right: 20px !important;
@@ -1169,7 +1169,7 @@ custom_css = """
1169
  }
1170
 
1171
  .question-text strong {
1172
- color: #e65100 !important;
1173
  font-weight: 600 !important;
1174
  font-size: 16px !important;
1175
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
@@ -1207,17 +1207,17 @@ custom_css = """
1207
  margin-bottom: 0;
1208
  }
1209
 
1210
- /* Professional headers with orange fade */
1211
  .questionnaire-grid h2 {
1212
  font-size: 28px !important;
1213
  font-weight: 700 !important;
1214
- color: #bf360c !important;
1215
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
1216
  }
1217
 
1218
  .questionnaire-grid p {
1219
  font-size: 16px !important;
1220
- color: #4a5568 !important;
1221
  font-weight: 400 !important;
1222
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
1223
  }
@@ -1243,9 +1243,9 @@ custom_css = """
1243
  background: linear-gradient(135deg, #fff7f0 0%, #ffede0 100%) !important;
1244
  }
1245
 
1246
- /* Labels styling */
1247
  label {
1248
- color: #2d3748 !important;
1249
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
1250
  font-weight: 500 !important;
1251
  font-size: 14px !important;
@@ -1272,7 +1272,7 @@ label {
1272
  }
1273
  """
1274
 
1275
- # Updated Gradio Interface with Orangish Fade Theme
1276
  with gr.Blocks(
1277
  title="๐Ÿถ Enhanced AI Dog Health Analyzer",
1278
  theme=gr.themes.Soft(
@@ -1301,7 +1301,7 @@ with gr.Blocks(
1301
  with gr.Column(scale=1):
1302
  gr.HTML("""
1303
  <div class="input-card">
1304
- <h2 style="color: #bf360c; margin: 0 0 24px 0; text-align: center; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600;">
1305
  ๐Ÿ“ธ Media Input Selection
1306
  </h2>
1307
  </div>
@@ -1354,21 +1354,21 @@ with gr.Blocks(
1354
  maximum=25
1355
  )
1356
 
1357
- # Right Column - Orange Fade HRQOL Questionnaire
1358
  with gr.Column(scale=1):
1359
  gr.HTML("""
1360
  <div class="questionnaire-grid">
1361
- <h2 style="color: #bf360c; margin: 0 0 16px 0; text-align: center; font-size: 28px; font-weight: 700; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;">
1362
  ๐Ÿ“‹ Health Assessment
1363
  </h2>
1364
- <p style="text-align: center; color: #4a5568; font-style: italic; margin-bottom: 28px; font-size: 16px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;">
1365
  Complete all questions for comprehensive healthspan analysis
1366
  </p>
1367
  """)
1368
 
1369
  hrqol_inputs = []
1370
 
1371
- # Create compact grid layout with professional text
1372
  with gr.Group(elem_classes=["question-section"]):
1373
  for domain_key, domain_data in HRQOL_QUESTIONNAIRE.items():
1374
  for i, question in enumerate(domain_data["questions"]):
 
1156
  margin-bottom: 0;
1157
  }
1158
 
1159
+ /* Orange questionnaire text styling - UPDATED TO MATCH THEME */
1160
  .question-text {
1161
  font-size: 16px !important;
1162
+ color: #e65100 !important;
1163
  line-height: 1.6 !important;
1164
  margin: 0 !important;
1165
  padding-right: 20px !important;
 
1169
  }
1170
 
1171
  .question-text strong {
1172
+ color: #bf360c !important;
1173
  font-weight: 600 !important;
1174
  font-size: 16px !important;
1175
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
 
1207
  margin-bottom: 0;
1208
  }
1209
 
1210
+ /* Professional headers with orange fade - UPDATED */
1211
  .questionnaire-grid h2 {
1212
  font-size: 28px !important;
1213
  font-weight: 700 !important;
1214
+ color: #d84315 !important;
1215
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
1216
  }
1217
 
1218
  .questionnaire-grid p {
1219
  font-size: 16px !important;
1220
+ color: #ff6f00 !important;
1221
  font-weight: 400 !important;
1222
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
1223
  }
 
1243
  background: linear-gradient(135deg, #fff7f0 0%, #ffede0 100%) !important;
1244
  }
1245
 
1246
+ /* Labels styling - UPDATED TO ORANGE */
1247
  label {
1248
+ color: #e65100 !important;
1249
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
1250
  font-weight: 500 !important;
1251
  font-size: 14px !important;
 
1272
  }
1273
  """
1274
 
1275
+ # Updated Gradio Interface with Orange Questionnaire Font
1276
  with gr.Blocks(
1277
  title="๐Ÿถ Enhanced AI Dog Health Analyzer",
1278
  theme=gr.themes.Soft(
 
1301
  with gr.Column(scale=1):
1302
  gr.HTML("""
1303
  <div class="input-card">
1304
+ <h2 style="color: #d84315; margin: 0 0 24px 0; text-align: center; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600;">
1305
  ๐Ÿ“ธ Media Input Selection
1306
  </h2>
1307
  </div>
 
1354
  maximum=25
1355
  )
1356
 
1357
+ # Right Column - Orange Font HRQOL Questionnaire
1358
  with gr.Column(scale=1):
1359
  gr.HTML("""
1360
  <div class="questionnaire-grid">
1361
+ <h2 style="color: #d84315; margin: 0 0 16px 0; text-align: center; font-size: 28px; font-weight: 700; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;">
1362
  ๐Ÿ“‹ Health Assessment
1363
  </h2>
1364
+ <p style="text-align: center; color: #ff6f00; font-style: italic; margin-bottom: 28px; font-size: 16px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;">
1365
  Complete all questions for comprehensive healthspan analysis
1366
  </p>
1367
  """)
1368
 
1369
  hrqol_inputs = []
1370
 
1371
+ # Create compact grid layout with orange text
1372
  with gr.Group(elem_classes=["question-section"]):
1373
  for domain_key, domain_data in HRQOL_QUESTIONNAIRE.items():
1374
  for i, question in enumerate(domain_data["questions"]):