Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,14 +10,14 @@ inference = InferenceApi(repo_id="bert-base-uncased", token=API_TOKEN)
|
|
| 10 |
|
| 11 |
text1 = st.text_area("enter some text 111")
|
| 12 |
if text1:
|
| 13 |
-
res = inference(inputs=
|
| 14 |
st.json(res)
|
| 15 |
|
| 16 |
pipe = pipeline("sentiment-analysis")
|
| 17 |
text2 = st.text_area("enter some text 222")
|
| 18 |
|
| 19 |
if text2:
|
| 20 |
-
out = pipe(
|
| 21 |
st.json(out)
|
| 22 |
|
| 23 |
# import streamlit as st
|
|
|
|
| 10 |
|
| 11 |
text1 = st.text_area("enter some text 111")
|
| 12 |
if text1:
|
| 13 |
+
res = inference(inputs=text1)
|
| 14 |
st.json(res)
|
| 15 |
|
| 16 |
pipe = pipeline("sentiment-analysis")
|
| 17 |
text2 = st.text_area("enter some text 222")
|
| 18 |
|
| 19 |
if text2:
|
| 20 |
+
out = pipe(text2)
|
| 21 |
st.json(out)
|
| 22 |
|
| 23 |
# import streamlit as st
|