Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,13 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
|
6 |
# Explicitly specify the sentiment analysis model
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer
|
3 |
+
import subprocess
|
4 |
+
|
5 |
+
# Install TensorFlow
|
6 |
+
subprocess.run(["pip", "install", "tensorflow==2.0"])
|
7 |
+
|
8 |
+
# Install PyTorch
|
9 |
+
subprocess.run(["pip", "install", "torch"])
|
10 |
+
|
11 |
|
12 |
|
13 |
# Explicitly specify the sentiment analysis model
|