Sigurdur commited on
Commit
c3dd932
1 Parent(s): 731ffd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,11 +1,11 @@
1
  import gradio as gr
2
 
3
- from transformers import AutoModel, AutoTokenizer
4
  from transformers import TextGenerationPipeline
5
 
6
 
7
  tokenizer = AutoTokenizer.from_pretrained("Sigurdur/icebreaker")
8
- model = AutoModel.from_pretrained("Sigurdur/icebreaker")
9
  pipeline = TextGenerationPipeline(model=model, tokenizer=tokenizer)
10
 
11
  def generate_text(inp):
 
1
  import gradio as gr
2
 
3
+ from transformers import AutoModelForCausalLM, AutoTokenizer
4
  from transformers import TextGenerationPipeline
5
 
6
 
7
  tokenizer = AutoTokenizer.from_pretrained("Sigurdur/icebreaker")
8
+ model = AutoModelForCausalLM.from_pretrained("Sigurdur/icebreaker")
9
  pipeline = TextGenerationPipeline(model=model, tokenizer=tokenizer)
10
 
11
  def generate_text(inp):