Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
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():
|