Wootang01 commited on
Commit
204cd46
·
1 Parent(s): 6097157

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,3 +1,6 @@
1
  import gradio as gr
 
2
 
3
- gr.Interface.load("bigscience/bloom", title="Text Generator Five w/ Variables", description="Input your text, submit and the machine will output text.").launch()
 
 
 
1
  import gradio as gr
2
+ from transformers import pipeline
3
 
4
+ pipe=pipeline(task="text-generation", model="bigscience/bloom")
5
+
6
+ gr.Interface.from_pipeline(pipe, title="Text Generator Five w/ Variables", description="Input your text, submit and the machine will output text.").launch()