dwojcik commited on
Commit
ac5c4ff
1 Parent(s): 4fdfce3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
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")
 
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")