markytools commited on
Commit
a4e1b78
·
1 Parent(s): 390cad0

updated pom file

Browse files
Files changed (1) hide show
  1. app.py +37 -1
app.py CHANGED
@@ -25,9 +25,45 @@ radioButtonList = ["E-commerce CSV (https://www.kaggle.com/datasets/mervemenekse
25
  "Upload my own PDF",
26
  "URL Chat with Google Latest Earnings (https://abc.xyz/investor/)",
27
  "Enter my own URL"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  genre = st.radio(
29
  "Choose dataset to finetune", radioButtonList, index=0
30
- )
31
 
32
  # Initialize language model
33
  load_dotenv(find_dotenv()) # read local .env file
 
25
  "Upload my own PDF",
26
  "URL Chat with Google Latest Earnings (https://abc.xyz/investor/)",
27
  "Enter my own URL"]
28
+
29
+ # Add some designs to the radio buttons
30
+ st.markdown("""
31
+ <style>
32
+ .stRadio {
33
+ padding: 10px;
34
+ border-radius: 5px;
35
+ background-color: #f5f5f5;
36
+ }
37
+
38
+ .stRadio input[type="radio"] {
39
+ position: absolute;
40
+ opacity: 0;
41
+ cursor: pointer;
42
+ }
43
+
44
+ .stRadio label {
45
+ display: flex;
46
+ justify-content: center;
47
+ align-items: center;
48
+ cursor: pointer;
49
+ font-size: 16px;
50
+ color: #333;
51
+ }
52
+
53
+ .stRadio label:hover {
54
+ color: #000;
55
+ }
56
+
57
+ .stRadio.st-selected input[type="radio"] ~ label {
58
+ color: #000;
59
+ background-color: #d9d9d9;
60
+ }
61
+ </style>
62
+ """, unsafe_allow_html=True)
63
+
64
  genre = st.radio(
65
  "Choose dataset to finetune", radioButtonList, index=0
66
+ )
67
 
68
  # Initialize language model
69
  load_dotenv(find_dotenv()) # read local .env file