Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,4 +2,9 @@ import streamlit as st
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
pipe = pipeline('DarwinV1.0')
|
5 |
-
text = st.text_area('Darwin prompt')
|
|
|
|
|
|
|
|
|
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
pipe = pipeline('DarwinV1.0')
|
5 |
+
text = st.text_area('Darwin prompt')
|
6 |
+
|
7 |
+
|
8 |
+
if text:
|
9 |
+
out = pipe(text)
|
10 |
+
st.json(out)
|