Skip to content
This repository was archived by the owner on Oct 3, 2021. It is now read-only.

Commit 5d45b91

Browse files
committed
Updated README
1 parent 01bfd21 commit 5d45b91

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
<p align="center">Easy-to-use Wrapper for GPT-2 117M and 345M Transformer Models</p>
44

5-
<!-- <center>
5+
<div align="center" style="display: flex;justify-content:space-evenly;width: 250px;margin: 0 auto;">
66

7-
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7+
<p align="center"><a style="margin: 0 10px" href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg"></a></p>
8+
<p align="center"><a style="margin: 0 10px" href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg"></a></p>
89

9-
</center> -->
10+
</div>
1011

11-
<img src="https://github.com/rish-16/gpt2client/raw/master/assets/demo.png" style="width: 80%;" />
12+
<div><img src="https://github.com/rish-16/gpt2client/raw/master/assets/demo.png" /></div>
1213

1314
<p align="center"><strong>Made by Rishabh Anand • <a href="https://rish-16.github.io">https://rish-16.github.io</a></strong></p>
1415

gpt2_client/gpt2_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def generate(self, interactive=False, n_samples=1, words=None, display=True, ret
178178
context_tokens = enc.encode(prompt)
179179
text_array = []
180180
text = ''
181+
generated = 0
181182
for _ in range(n_samples // batch_size):
182183
out = sess.run(output, feed_dict={
183184
context: [context_tokens for _ in range(batch_size)]

0 commit comments

Comments
 (0)