Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
|
4 |
-
|
5 |
-
model_name = "gpt2-large"
|
6 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
7 |
model.generation_config.temperature = 2.0
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name, padding_side="right")
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
|
4 |
+
model_name = "dwojcik/gpt2-large-fine-tuned-context-256"
|
5 |
+
# model_name = "gpt2-large"
|
6 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
7 |
model.generation_config.temperature = 2.0
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name, padding_side="right")
|