Spaces:
Runtime error
Runtime error
Commit
•
c85546a
1
Parent(s):
f9f7acb
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from happytransformer import HappyGeneration
|
|
5 |
happy_gen = HappyGeneration("GPT-NEO", "DarwinAnim8or/GPT-Greentext-125m")
|
6 |
|
7 |
from happytransformer import GENSettings
|
8 |
-
args_top_k = GENSettings(no_repeat_ngram_size=2, do_sample=True,top_k=80, temperature=0.
|
9 |
|
10 |
def generate(text):
|
11 |
inputText = "Write a greentext from 4chan.org. The story should be like a bullet-point list using > as the start of each line. Most greentexts are humorous or absurd in nature. Most greentexts have a twist near the end.\n"
|
|
|
5 |
happy_gen = HappyGeneration("GPT-NEO", "DarwinAnim8or/GPT-Greentext-125m")
|
6 |
|
7 |
from happytransformer import GENSettings
|
8 |
+
args_top_k = GENSettings(no_repeat_ngram_size=2, do_sample=True,top_k=80, temperature=0.7, max_length=150, early_stopping=False)
|
9 |
|
10 |
def generate(text):
|
11 |
inputText = "Write a greentext from 4chan.org. The story should be like a bullet-point list using > as the start of each line. Most greentexts are humorous or absurd in nature. Most greentexts have a twist near the end.\n"
|