Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("ashercn97/awesome-prompts-merged")
|
6 |
-
model = AutoModelForCausalLM.from_pretrained("ashercn97/awesome-prompts-merged"
|
7 |
pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer)
|
8 |
|
9 |
def generate(prompt):
|
|
|
3 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("ashercn97/awesome-prompts-merged")
|
6 |
+
model = AutoModelForCausalLM.from_pretrained("ashercn97/awesome-prompts-merged")
|
7 |
pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer)
|
8 |
|
9 |
def generate(prompt):
|