Reality123b commited on
Commit
9667193
·
verified ·
1 Parent(s): 8e3b03e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +113 -13
app.py CHANGED
@@ -1234,24 +1234,124 @@ def deep_research(prompt):
1234
 
1235
 
1236
  custom_css = """
 
1237
  .gradio-container {
1238
- background-color: #f7f9fc;
 
 
 
 
 
 
1239
  }
1240
- .output-box {
1241
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
1242
- line-height: 1.5;
1243
- font-size: 14px;
1244
- white-space: pre-wrap; /* Preserve newlines and spacing */
 
1245
  }
1246
- h3 {
1247
- color: #2c3e50;
1248
- font-weight: 600;
1249
  }
1250
- .footer {
1251
- text-align: center;
1252
- margin-top: 20px;
1253
- color: #7f8c8d;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1254
  font-size: 0.9em;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1255
  }
1256
  """
1257
 
 
1234
 
1235
 
1236
  custom_css = """
1237
+ /* General Container Styles */
1238
  .gradio-container {
1239
+ max-width: 90vw; /* Use viewport width for responsiveness */
1240
+ margin: auto;
1241
+ font-family: 'Roboto', sans-serif; /* Modern, readable font */
1242
+ background-color: #1e1e1e; /* Dark background */
1243
+ color: #ffffff; /* Light text */
1244
+ border-radius: 8px;
1245
+ box-shadow: 0 4px 8px rgba(0,0,0,0.5); /* Subtle shadow */
1246
  }
1247
+
1248
+ /* Input and Output Areas */
1249
+ .input-area, .output-area {
1250
+ margin-bottom: 1rem;
1251
+ padding: 1rem;
1252
+ border-radius: 4px;
1253
  }
1254
+
1255
+ .input-area {
1256
+ background-color: #2c2c2c; /* Slightly lighter background for input */
1257
  }
1258
+
1259
+ .input-area label {
1260
+ color: #ddd; /* Lighter label text */
1261
+ font-size: 1.1em;
1262
+ font-weight: bold;
1263
+ }
1264
+
1265
+ .output-area {
1266
+ background-color: #333; /* Slightly lighter than input for contrast */
1267
+ min-height: 200px;
1268
+ overflow-y: auto; /* Scrollable output */
1269
+ }
1270
+ .output-area pre { /* For the markdown */
1271
+ white-space: pre-wrap;
1272
+ word-break: break-word;
1273
+ font-size: 0.9em;
1274
+ line-height:1.5;
1275
+ }
1276
+ .output-area code {
1277
+ background-color: #444; /* slightly lighter for code blocks */
1278
+ color: #eee;
1279
+ padding: 0.1em 0.3em;
1280
+ border-radius: 3px;
1281
+ }
1282
+
1283
+ /* Textbox Styles */
1284
+ .gr-textbox {
1285
+ background-color: #222;
1286
+ color: #fff;
1287
+ border: 1px solid #555;
1288
+ border-radius: 4px;
1289
+ padding: 0.75rem;
1290
+ font-size: 1em;
1291
+ }
1292
+
1293
+ .gr-textbox:focus {
1294
+ border-color: #4e89e2; /* Highlight on focus */
1295
+ box-shadow: 0 0 5px rgba(78, 137, 226, 0.5);
1296
+ }
1297
+
1298
+ /* Submit Button */
1299
+ .submit-button {
1300
+ background-color: #4e89e2; /* Primary color */
1301
+ color: white;
1302
+ border: none;
1303
+ padding: 0.75rem 1.5rem;
1304
+ border-radius: 4px;
1305
+ cursor: pointer;
1306
+ font-size: 1em;
1307
+ font-weight: bold;
1308
+ transition: background-color 0.2s ease; /* Smooth transition */
1309
+ }
1310
+ .submit-button:hover {
1311
+ background-color: #3867b4;
1312
+ }
1313
+
1314
+ /* Progress/Loading Indicator (Simple Text-Based) */
1315
+ .progress-text {
1316
+ color: #88c0d0; /* Lighter text for updates/progress */
1317
  font-size: 0.9em;
1318
+ margin-bottom: 0.5rem;
1319
+ }
1320
+
1321
+
1322
+ /* Example Section */
1323
+ .examples {
1324
+ padding: 0.5rem;
1325
+ border-top: 1px solid #555;
1326
+ }
1327
+
1328
+ .examples li {
1329
+ margin-bottom: 0.4em;
1330
+ color: #bbb;
1331
+ }
1332
+ .examples button{
1333
+ color: #bbb;
1334
+ background-color: #444;
1335
+ border-color:#777;
1336
+ }
1337
+ .examples button:hover{
1338
+ background-color: #555;
1339
+ }
1340
+
1341
+ /* Title and Description */
1342
+ .title {
1343
+ text-align: center;
1344
+ font-size: 2em;
1345
+ font-weight: bold;
1346
+ margin-bottom: 0.5rem;
1347
+ color: #ddd;
1348
+ }
1349
+ .description {
1350
+ text-align: center;
1351
+ font-size: 1.1em;
1352
+ margin-bottom: 1rem;
1353
+ color: #bbb;
1354
+
1355
  }
1356
  """
1357