Spaces:
Sleeping
Sleeping
update app
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ image = st.image("images.png", width=200)
|
|
30 |
|
31 |
# Get user input
|
32 |
text = st.text_input("Type here:")
|
33 |
-
|
34 |
# d = {
|
35 |
|
36 |
# 0:'Negative',
|
@@ -79,7 +79,7 @@ def get_model():
|
|
79 |
return tokenizer,model
|
80 |
tokenizer, model = get_model()
|
81 |
|
82 |
-
if text
|
83 |
text_sample = tokenizer(text, padding = 'max_length',return_tensors = 'pt')
|
84 |
# print(text_sample)
|
85 |
output = model(**text_sample)
|
|
|
30 |
|
31 |
# Get user input
|
32 |
text = st.text_input("Type here:")
|
33 |
+
|
34 |
# d = {
|
35 |
|
36 |
# 0:'Negative',
|
|
|
79 |
return tokenizer,model
|
80 |
tokenizer, model = get_model()
|
81 |
|
82 |
+
if text:
|
83 |
text_sample = tokenizer(text, padding = 'max_length',return_tensors = 'pt')
|
84 |
# print(text_sample)
|
85 |
output = model(**text_sample)
|