ashhadahsan commited on
Commit
97828eb
·
1 Parent(s): 020acf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  import streamlit as st
2
  import pandas as pd
3
  from transformers import pipeline
@@ -12,6 +15,8 @@ from datetime import datetime
12
  import logging
13
  import pip
14
 
 
 
15
  date = datetime.now().strftime(r"%Y-%m-%d")
16
  model_classes ={
17
  0: "Ads",
 
1
+ import subprocess
2
+ subprocess.check_call(["python", '-m', 'pip', 'install',"--upgrade", 'streamlit']) # upgrade pkg
3
+
4
  import streamlit as st
5
  import pandas as pd
6
  from transformers import pipeline
 
15
  import logging
16
  import pip
17
 
18
+
19
+
20
  date = datetime.now().strftime(r"%Y-%m-%d")
21
  model_classes ={
22
  0: "Ads",