Spaces:
Runtime error
Runtime error
Commit
·
3b33fc7
1
Parent(s):
296db22
trying something out
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from happytransformer import GENSettings
|
|
8 |
args_top_k = GENSettings(no_repeat_ngram_size=3, do_sample=True, top_k=80, temperature=0.8, 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"
|
12 |
inputText += ">" + text + "\n>"
|
13 |
|
14 |
result = happy_gen.generate_text(inputText, args=args_top_k)
|
|
|
8 |
args_top_k = GENSettings(no_repeat_ngram_size=3, do_sample=True, top_k=80, temperature=0.8, 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"
|
12 |
inputText += ">" + text + "\n>"
|
13 |
|
14 |
result = happy_gen.generate_text(inputText, args=args_top_k)
|