Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
import os
|
2 |
os.system('pip install transformers')
|
3 |
os.system('pip install torch')
|
4 |
-
|
5 |
# Import required libraries
|
6 |
import torch
|
7 |
import transformers
|
@@ -24,7 +23,7 @@ def analyze_sentiment(text):
|
|
24 |
return result
|
25 |
|
26 |
# Create the user input form
|
27 |
-
col1, col2 = st.
|
28 |
with col1:
|
29 |
text_input = st.text_area("Enter Text:", "", key="my_input")
|
30 |
with col2:
|
|
|
1 |
import os
|
2 |
os.system('pip install transformers')
|
3 |
os.system('pip install torch')
|
|
|
4 |
# Import required libraries
|
5 |
import torch
|
6 |
import transformers
|
|
|
23 |
return result
|
24 |
|
25 |
# Create the user input form
|
26 |
+
col1, col2 = st.columns(2)
|
27 |
with col1:
|
28 |
text_input = st.text_area("Enter Text:", "", key="my_input")
|
29 |
with col2:
|