zxw commited on
Commit
2f81d8b
1 Parent(s): 132f224

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  import clueai
2
  import streamlit as st
3
  def introduction():
 
1
+ import subprocess
2
+ def runcmd(command):
3
+ ret = subprocess.run(command,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE,encoding="utf-8",timeout=60)
4
+ if ret.returncode == 0:
5
+ print("success:",ret)
6
+ else:
7
+ print("error:",ret)
8
+ runcmd("pip3 install --upgrade clueai")
9
  import clueai
10
  import streamlit as st
11
  def introduction():