Belligerent commited on
Commit
205984a
·
1 Parent(s): 2616037

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
3
 
4
- pipe = pipeline(tokenizer = AutoTokenizer.from_pretrained("jpelhaw/t5-word-sense-disambiguation"), model = AutoModelForSeq2SeqLM.from_pretrained("jpelhaw/t5-word-sense-disambiguation"))
5
 
6
  gr.Interface.from_pipeline(pipe,
7
  inputs = "text",
 
1
  import gradio as gr
2
  from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
3
 
4
+ pipe = pipeline(model = AutoModelForSeq2SeqLM.from_pretrained("jpelhaw/t5-word-sense-disambiguation"),tokenizer = AutoTokenizer.from_pretrained("jpelhaw/t5-word-sense-disambiguation"), )
5
 
6
  gr.Interface.from_pipeline(pipe,
7
  inputs = "text",