Shilpaj commited on
Commit
f1387d1
Β·
1 Parent(s): 658acdc

Docs: Updated documentation

Browse files
Files changed (3) hide show
  1. README.md +14 -1
  2. app.py +2 -2
  3. assets/app.gif +0 -0
README.md CHANGED
@@ -41,18 +41,24 @@ The model is trained using cross-entropy loss and AdamW optimizer with weight de
41
  └── requirements.txt # Dependencies
42
  ```
43
 
 
 
44
  ### Install Dependencies
45
 
46
  ```
47
  pip install -r requirements.txt
48
  ```
49
 
 
 
50
  ### Run the Notebook
51
 
52
  ```
53
  jupyter notebook S12Trained.ipynb
54
  ```
55
 
 
 
56
  ### Training Logs
57
 
58
  Training logs for few steps are shown below:
@@ -114,6 +120,8 @@ Reached target loss! Final loss: 0.0889 at step 11,663
114
  Model saved to gpt_model.pt
115
  ```
116
 
 
 
117
  ### Model Output
118
 
119
  ```bash
@@ -126,6 +134,11 @@ The tyrant from one curst my death lies;
126
  For the ground is nothing henceforth fell executioner come
127
  ```
128
 
 
 
129
  ### Try it out
130
 
131
- App Link
 
 
 
 
41
  └── requirements.txt # Dependencies
42
  ```
43
 
44
+
45
+
46
  ### Install Dependencies
47
 
48
  ```
49
  pip install -r requirements.txt
50
  ```
51
 
52
+
53
+
54
  ### Run the Notebook
55
 
56
  ```
57
  jupyter notebook S12Trained.ipynb
58
  ```
59
 
60
+
61
+
62
  ### Training Logs
63
 
64
  Training logs for few steps are shown below:
 
120
  Model saved to gpt_model.pt
121
  ```
122
 
123
+
124
+
125
  ### Model Output
126
 
127
  ```bash
 
134
  For the ground is nothing henceforth fell executioner come
135
  ```
136
 
137
+
138
+
139
  ### Try it out
140
 
141
+ App Link: https://huggingface.co/spaces/Shilpaj/ShakespeareGPT
142
+
143
+
144
+ ![App](./assets/app.gif)
app.py CHANGED
@@ -159,8 +159,8 @@ demo = gr.Interface(
159
  gr.Slider(minimum=0.1, maximum=2.0, value=0.8, step=0.1, label="Temperature (higher = more random)")
160
  ],
161
  outputs=gr.Textbox(label="Generated Text"),
162
- title="NanoGPT Text Generator",
163
- description="Generate Shakespeare-style text using a trained NanoGPT model",
164
  allow_flagging="never",
165
  cache_examples=True
166
  )
 
159
  gr.Slider(minimum=0.1, maximum=2.0, value=0.8, step=0.1, label="Temperature (higher = more random)")
160
  ],
161
  outputs=gr.Textbox(label="Generated Text"),
162
+ title="GPT Text Generator",
163
+ description="Generate Shakespeare-style text using a trained GPT model",
164
  allow_flagging="never",
165
  cache_examples=True
166
  )
assets/app.gif ADDED