Spaces:
Sleeping
Sleeping
sharmavaruncs
commited on
Commit
•
8da8931
1
Parent(s):
608d2a8
restructred folders
Browse files- app.py +1 -1
- icon.png.svg → config/icon.png.svg +0 -0
- dataset/tips_augmented.csv +0 -0
- icon.png +0 -0
- notebooks/DeepSpeedFineTuningGenAI.ipynb +0 -0
- notebooks/ds_config_gpt_neo_27-Copy1.json +39 -0
- output.wav +0 -0
- style.css +0 -101
app.py
CHANGED
@@ -90,7 +90,7 @@ def config():
|
|
90 |
None
|
91 |
"""
|
92 |
# Loading Image using PIL
|
93 |
-
im = Image.open('./icon.png')
|
94 |
|
95 |
# Set the page configuration with the title and icon
|
96 |
st.set_page_config(page_title="Virtual Therapist", page_icon=im)
|
|
|
90 |
None
|
91 |
"""
|
92 |
# Loading Image using PIL
|
93 |
+
im = Image.open('./config/icon.png')
|
94 |
|
95 |
# Set the page configuration with the title and icon
|
96 |
st.set_page_config(page_title="Virtual Therapist", page_icon=im)
|
icon.png.svg → config/icon.png.svg
RENAMED
File without changes
|
dataset/tips_augmented.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
icon.png
DELETED
Binary file (1.16 kB)
|
|
notebooks/DeepSpeedFineTuningGenAI.ipynb
ADDED
The diff for this file is too large to render.
See raw diff
|
|
notebooks/ds_config_gpt_neo_27-Copy1.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"train_batch_size": 1,
|
3 |
+
"fp16": {
|
4 |
+
"enabled": true,
|
5 |
+
"min_loss_scale": 1,
|
6 |
+
"opt_level": "O2"
|
7 |
+
},
|
8 |
+
"zero_optimization": {
|
9 |
+
"stage": 2,
|
10 |
+
"offload_param": {
|
11 |
+
"device": "cpu"
|
12 |
+
},
|
13 |
+
"offload_optimizer": {
|
14 |
+
"device": "cpu"
|
15 |
+
},
|
16 |
+
"allgather_partitions": true,
|
17 |
+
"allgather_bucket_size": 5e8,
|
18 |
+
"contiguous_gradients": true
|
19 |
+
},
|
20 |
+
"optimizer": {
|
21 |
+
"type": "AdamW",
|
22 |
+
"params": {
|
23 |
+
"lr": 5e-05,
|
24 |
+
"betas": [
|
25 |
+
0.9,
|
26 |
+
0.999
|
27 |
+
],
|
28 |
+
"eps": 1e-08
|
29 |
+
}
|
30 |
+
},
|
31 |
+
"scheduler": {
|
32 |
+
"type": "WarmupLR",
|
33 |
+
"params": {
|
34 |
+
"warmup_min_lr": 0,
|
35 |
+
"warmup_max_lr": 5e-05,
|
36 |
+
"warmup_num_steps": 50
|
37 |
+
}
|
38 |
+
}
|
39 |
+
}
|
output.wav
DELETED
Binary file (116 kB)
|
|
style.css
DELETED
@@ -1,101 +0,0 @@
|
|
1 |
-
/* styles.css */
|
2 |
-
|
3 |
-
/* Customize the Streamlit theme */
|
4 |
-
body {
|
5 |
-
font-family: 'Helvetica', sans-serif;
|
6 |
-
color: #333333;
|
7 |
-
background-color: #8B0000; /* Replace with your preferred color */
|
8 |
-
}
|
9 |
-
|
10 |
-
/* Style the title */
|
11 |
-
h1 {
|
12 |
-
font-size: 36px;
|
13 |
-
margin-bottom: 30px;
|
14 |
-
color: #007BFF;
|
15 |
-
}
|
16 |
-
|
17 |
-
/* Style the icon image */
|
18 |
-
img {
|
19 |
-
border-radius: 10px;
|
20 |
-
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
21 |
-
}
|
22 |
-
|
23 |
-
/* Style the subheader */
|
24 |
-
h2 {
|
25 |
-
font-size: 24px;
|
26 |
-
margin-top: 20px;
|
27 |
-
margin-bottom: 10px;
|
28 |
-
color: #007BFF;
|
29 |
-
}
|
30 |
-
|
31 |
-
/* Add a custom button style */
|
32 |
-
.stButton button {
|
33 |
-
background-color: #007BFF;
|
34 |
-
color: white;
|
35 |
-
border: none;
|
36 |
-
border-radius: 5px;
|
37 |
-
padding: 10px 20px;
|
38 |
-
font-size: 16px;
|
39 |
-
cursor: pointer;
|
40 |
-
transition: background-color 0.3s ease;
|
41 |
-
}
|
42 |
-
|
43 |
-
.stButton button:hover {
|
44 |
-
background-color: #0056b3;
|
45 |
-
}
|
46 |
-
|
47 |
-
/* Remove Streamlit default header and footer */
|
48 |
-
.stApp {
|
49 |
-
padding-top: 0;
|
50 |
-
padding-bottom: 0;
|
51 |
-
}
|
52 |
-
|
53 |
-
/* Center the app content */
|
54 |
-
#root {
|
55 |
-
display: flex;
|
56 |
-
flex-direction: column;
|
57 |
-
align-items: center;
|
58 |
-
}
|
59 |
-
|
60 |
-
/* Custom CSS for the record button */
|
61 |
-
.st-record-button {
|
62 |
-
padding: 8px 12px;
|
63 |
-
border-radius: 50%;
|
64 |
-
background-color: red;
|
65 |
-
color: white;
|
66 |
-
font-size: 16px;
|
67 |
-
font-weight: bold;
|
68 |
-
border: none;
|
69 |
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
70 |
-
cursor: pointer;
|
71 |
-
transition: background-color 0.2s;
|
72 |
-
}
|
73 |
-
|
74 |
-
.st-record-button:hover {
|
75 |
-
background-color: darkred;
|
76 |
-
}
|
77 |
-
|
78 |
-
/* Define styles for the mobile screen */
|
79 |
-
.mobile-screen {
|
80 |
-
border: 2px solid #0c0101;
|
81 |
-
width: 320px;
|
82 |
-
height: 480px;
|
83 |
-
margin: 0 auto;
|
84 |
-
overflow: hidden;
|
85 |
-
position: relative;
|
86 |
-
}
|
87 |
-
|
88 |
-
/* Define styles for the speech input area */
|
89 |
-
.speech-input {
|
90 |
-
width: 100%;
|
91 |
-
padding: 10px;
|
92 |
-
border: none;
|
93 |
-
outline: none;
|
94 |
-
}
|
95 |
-
|
96 |
-
/* Define styles for the chat area */
|
97 |
-
.chat-area {
|
98 |
-
height: 320px;
|
99 |
-
overflow-y: scroll;
|
100 |
-
padding: 10px;
|
101 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|