with open("Ideas2.txt", "r", encoding="latin-1") as f: line = f.readlines()
Browse files
app.py
CHANGED
|
@@ -6,8 +6,8 @@ import sys
|
|
| 6 |
gpt2_pipe = pipeline('text-generation', model='Gustavosta/MagicPrompt-Stable-Diffusion', tokenizer='gpt2')
|
| 7 |
|
| 8 |
def generate(starting_text):
|
| 9 |
-
with open("Ideas2.txt", "r") as f:
|
| 10 |
-
|
| 11 |
seed = random.randint(100, 1000000)
|
| 12 |
set_seed(seed)
|
| 13 |
|
|
|
|
| 6 |
gpt2_pipe = pipeline('text-generation', model='Gustavosta/MagicPrompt-Stable-Diffusion', tokenizer='gpt2')
|
| 7 |
|
| 8 |
def generate(starting_text):
|
| 9 |
+
with open("Ideas2.txt", "r", encoding="latin-1") as f:
|
| 10 |
+
line = f.readlines
|
| 11 |
seed = random.randint(100, 1000000)
|
| 12 |
set_seed(seed)
|
| 13 |
|