Sephfox commited on
Commit
a425e13
1 Parent(s): 36b1bb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +75 -0
app.py CHANGED
@@ -13,7 +13,82 @@ from datetime import datetime
13
  from typing import Dict, List, Any
14
  import pandas as pd # Added pandas import
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  # Prepare Dataset Function with Padding Token Fix
19
  def prepare_dataset(data, tokenizer, block_size=128):
 
13
  from typing import Dict, List, Any
14
  import pandas as pd # Added pandas import
15
 
16
+ # Cyberpunk and Loading Animation Styling
17
+ def setup_cyberpunk_style():
18
+ st.markdown("""
19
+ <style>
20
+ body {
21
+ background-color: #000;
22
+ color: #00ff00;
23
+ font-family: 'Monaco', monospace;
24
+ }
25
+ .stButton>button {
26
+ color: #00ff00;
27
+ border: 1px solid #00ff00;
28
+ background-color: transparent;
29
+ transition: 0.3s ease-in-out;
30
+ }
31
+ .stButton>button:hover {
32
+ color: #000;
33
+ background-color: #00ff00;
34
+ }
35
+ .stTextInput>div>div>input, .stSelectbox>div>div>div>div, .stTextArea>div>div>textarea {
36
+ background-color: #111;
37
+ color: #00ff00;
38
+ border: 1px solid #00ff00;
39
+ }
40
+ .stSlider>div>div>div>div, .stNumberInput>div>div>div>div>input {
41
+ background-color: #111;
42
+ color: #00ff00;
43
+ }
44
+ .stMarkdown, .stText, .stDataFrame {
45
+ color: #00ff00;
46
+ }
47
+ .stAlert {
48
+ background-color: #111;
49
+ color: #00ff00;
50
+ border: 1px solid #00ff00;
51
+ }
52
+ .stProgress>div>div>div {
53
+ background-color: #00ff00;
54
+ }
55
+ /* Loading animation */
56
+ .st-loader {
57
+ border: 8px solid #111;
58
+ border-top: 8px solid #00ff00;
59
+ border-radius: 50%;
60
+ width: 60px;
61
+ height: 60px;
62
+ animation: spin 1s linear infinite;
63
+ }
64
 
65
+ @keyframes spin {
66
+ 0% { transform: rotate(0deg); }
67
+ 100% { transform: rotate(360deg); }
68
+ }
69
+ /* Plotly chart styling */
70
+ .modebar {
71
+ background-color: #111 !important;
72
+ border: 1px solid #00ff00 !important;
73
+ }
74
+ .modebar-btn {
75
+ color: #00ff00 !important;
76
+ background-color: transparent !important;
77
+ }
78
+ .modebar-btn:hover {
79
+ background-color: #00ff00 !important;
80
+ color: #000 !important;
81
+ }
82
+ .plotly-notifier {
83
+ background-color: #111 !important;
84
+ color: #00ff00 !important;
85
+ border: 1px solid #00ff00 !important;
86
+ }
87
+ .plotly-notifier a {
88
+ color: #00ff00 !important;
89
+ }
90
+ </style>
91
+ """, unsafe_allow_html=True)
92
 
93
  # Prepare Dataset Function with Padding Token Fix
94
  def prepare_dataset(data, tokenizer, block_size=128):