Spaces:
Runtime error
Runtime error
venkatks515
commited on
Commit
•
bb36174
1
Parent(s):
921e772
Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,11 @@ import transformers
|
|
3 |
from transformers import pipeline
|
4 |
|
5 |
st.title("Text Generation with Hugging Face")
|
6 |
-
|
7 |
|
8 |
model_name = "bigscience/mt0-xxl-mt"
|
9 |
generator = pipeline("text-generation", model=model_name, device=0)
|
10 |
-
|
11 |
|
12 |
|
13 |
if st.button("Generate Text"):
|
|
|
3 |
from transformers import pipeline
|
4 |
|
5 |
st.title("Text Generation with Hugging Face")
|
6 |
+
|
7 |
|
8 |
model_name = "bigscience/mt0-xxl-mt"
|
9 |
generator = pipeline("text-generation", model=model_name, device=0)
|
10 |
+
prompt = st.text_input("Enter text prompt:", "Once upon a time")
|
11 |
|
12 |
|
13 |
if st.button("Generate Text"):
|