Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,13 @@
|
|
1 |
-
import os
|
2 |
import requests
|
|
|
3 |
import importlib.util
|
4 |
import sys
|
5 |
import streamlit as st
|
6 |
|
7 |
def download_so():
|
8 |
-
url = "https://github.com/AlineIoste/teste/raw/main/SynapseControl.cpython-
|
9 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
10 |
-
output_path = os.path.join(current_dir, "SynapseControl.cpython-
|
11 |
-
|
12 |
-
# Verifique se o diret贸rio existe, se n茫o, crie-o
|
13 |
-
os.makedirs(os.path.dirname(output_path), exist_ok=True)
|
14 |
|
15 |
if not os.path.exists(output_path):
|
16 |
response = requests.get(url)
|
@@ -28,7 +25,7 @@ download_so()
|
|
28 |
|
29 |
# Verifique se o arquivo foi baixado corretamente
|
30 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
31 |
-
output_path = os.path.join(current_dir, "SynapseControl.cpython-
|
32 |
|
33 |
if os.path.exists(output_path):
|
34 |
st.write("File downloaded successfully.")
|
@@ -66,9 +63,4 @@ except Exception as e:
|
|
66 |
st.write(f"Error loading SynapseControl module: {e}")
|
67 |
|
68 |
# Continue com o restante da l贸gica do seu aplicativo Streamlit
|
69 |
-
|
70 |
-
import keys as key
|
71 |
-
|
72 |
st.title("Neurocognitive Structures")
|
73 |
-
|
74 |
-
st.title("Neurocognitive Structures")
|
|
|
|
|
1 |
import requests
|
2 |
+
import os
|
3 |
import importlib.util
|
4 |
import sys
|
5 |
import streamlit as st
|
6 |
|
7 |
def download_so():
|
8 |
+
url = "https://github.com/AlineIoste/teste/raw/main/SynapseControl.cpython-38-x86_64-linux-gnu.so"
|
9 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
10 |
+
output_path = os.path.join(current_dir, "SynapseControl.cpython-38-x86_64-linux-gnu.so")
|
|
|
|
|
|
|
11 |
|
12 |
if not os.path.exists(output_path):
|
13 |
response = requests.get(url)
|
|
|
25 |
|
26 |
# Verifique se o arquivo foi baixado corretamente
|
27 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
28 |
+
output_path = os.path.join(current_dir, "SynapseControl.cpython-38-x86_64-linux-gnu.so")
|
29 |
|
30 |
if os.path.exists(output_path):
|
31 |
st.write("File downloaded successfully.")
|
|
|
63 |
st.write(f"Error loading SynapseControl module: {e}")
|
64 |
|
65 |
# Continue com o restante da l贸gica do seu aplicativo Streamlit
|
|
|
|
|
|
|
66 |
st.title("Neurocognitive Structures")
|
|
|
|