Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
pipe = pipeline(model="facebook/opt-1.3b", torch_dtype=torch.bfloat16, device_map="auto")
|
| 6 |
-
text = st.text_area("Enter a sentence
|
| 7 |
|
| 8 |
if text:
|
| 9 |
out = pipe(text, do_sample=True, top_p=0.95)
|
|
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
pipe = pipeline(model="facebook/opt-1.3b", torch_dtype=torch.bfloat16, device_map="auto")
|
| 6 |
+
text = st.text_area("Enter a sentence !!!")
|
| 7 |
|
| 8 |
if text:
|
| 9 |
out = pipe(text, do_sample=True, top_p=0.95)
|