TejAndrewsACC commited on
Commit
8ae90a6
·
verified ·
1 Parent(s): c92e2d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -3
app.py CHANGED
@@ -1352,7 +1352,7 @@ def respond(message, history, max_tokens, temperature, top_p):
1352
 
1353
  css = """
1354
  #chat-interface {
1355
- animation: pulse 1.5s infinite, glass 3s infinite alternate;
1356
  }
1357
 
1358
  @keyframes pulse {
@@ -1363,6 +1363,21 @@ css = """
1363
  100% { transform: scale(1); opacity: 1; }
1364
  }
1365
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1366
  @keyframes glass {
1367
  0% { background-color: rgba(0, 102, 255, 0.5); border-radius: 15px; }
1368
  25% { background-color: rgba(0, 150, 255, 0.7); border-radius: 20px; }
@@ -1384,6 +1399,20 @@ body {
1384
  box-shadow: 0px 0px 30px rgba(0, 102, 255, 0.5);
1385
  background: rgba(0, 0, 0, 0.5);
1386
  transition: background 1s, border-radius 1s;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1387
  }
1388
 
1389
  .gradio-input {
@@ -1452,5 +1481,4 @@ demo = gr.ChatInterface(
1452
  if __name__ == "__main__":
1453
  demo.launch(share=True)
1454
 
1455
-
1456
-
 
1352
 
1353
  css = """
1354
  #chat-interface {
1355
+ animation: pulse 1.5s infinite, ripple 2s infinite, glass 3s infinite alternate;
1356
  }
1357
 
1358
  @keyframes pulse {
 
1363
  100% { transform: scale(1); opacity: 1; }
1364
  }
1365
 
1366
+ @keyframes ripple {
1367
+ 0% {
1368
+ transform: scale(1);
1369
+ box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.6);
1370
+ }
1371
+ 50% {
1372
+ transform: scale(1.2);
1373
+ box-shadow: 0 0 30px 20px rgba(0, 150, 255, 0.8);
1374
+ }
1375
+ 100% {
1376
+ transform: scale(1);
1377
+ box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.6);
1378
+ }
1379
+ }
1380
+
1381
  @keyframes glass {
1382
  0% { background-color: rgba(0, 102, 255, 0.5); border-radius: 15px; }
1383
  25% { background-color: rgba(0, 150, 255, 0.7); border-radius: 20px; }
 
1399
  box-shadow: 0px 0px 30px rgba(0, 102, 255, 0.5);
1400
  background: rgba(0, 0, 0, 0.5);
1401
  transition: background 1s, border-radius 1s;
1402
+ position: relative;
1403
+ }
1404
+
1405
+ .gradio-container::before {
1406
+ content: "";
1407
+ position: absolute;
1408
+ top: 0;
1409
+ left: 0;
1410
+ right: 0;
1411
+ bottom: 0;
1412
+ border: 2px solid rgba(0, 150, 255, 0.8);
1413
+ border-radius: 20px;
1414
+ z-index: -1;
1415
+ box-shadow: 0 0 20px 5px rgba(0, 150, 255, 0.7);
1416
  }
1417
 
1418
  .gradio-input {
 
1481
  if __name__ == "__main__":
1482
  demo.launch(share=True)
1483
 
1484
+