Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import streamlit as st
|
2 |
-
from transformers import pipeline
|
3 |
|
4 |
-
|
|
|
5 |
|
6 |
-
|
7 |
|
8 |
if text:
|
9 |
-
out =
|
10 |
-
st.json(out)
|
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
+
with open('./trained_model.pkl', 'rb') as file:
|
4 |
+
loaded_model = pickle.load(file)
|
5 |
|
6 |
+
input = st.text_area('Enter text')
|
7 |
|
8 |
if text:
|
9 |
+
out = loaded_model(input)
|
10 |
+
st.json(out[0][0])
|