taimoor61 commited on
Commit
a4b5dc0
·
1 Parent(s): b85eb1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,6 +1,13 @@
1
  import streamlit as st
2
  from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer
3
- pip install tensorflow==2.0 torch
 
 
 
 
 
 
 
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