Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Wootang01
/
text_generator_four
like
1
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
Wootang01
commited on
Nov 22, 2022
Commit
8bc5cde
·
1 Parent(s):
4f1192d
Update app.py
Browse files
Files changed (1)
hide
show
app.py
+4
-1
app.py
CHANGED
Viewed
@@ -1,3 +1,6 @@
1
import gradio as gr
2
3
-
gr.Interface.load
("
bigscience/bloom
-
560m
")
.launch()
1
import gradio as gr
2
+
from transformers import pipeline
3
4
+
pipe = pipeline
(
task=
"
text
-
generation
")
5
+
6
+
gr.Interface.load(pipe).launch()