Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
import os
|
2 |
import requests
|
3 |
-
import streamlit as st
|
4 |
import importlib.util
|
5 |
import sys
|
|
|
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)
|
@@ -28,7 +28,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.")
|
|
|
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-310-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-310-x86_64-linux-gnu.so")
|
11 |
|
12 |
# Verifique se o diret贸rio existe, se n茫o, crie-o
|
13 |
os.makedirs(os.path.dirname(output_path), exist_ok=True)
|
|
|
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-310-x86_64-linux-gnu.so")
|
32 |
|
33 |
if os.path.exists(output_path):
|
34 |
st.write("File downloaded successfully.")
|