Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,6 @@ import os
|
|
| 2 |
import requests
|
| 3 |
import streamlit as st
|
| 4 |
|
| 5 |
-
|
| 6 |
def download_so():
|
| 7 |
url = "https://github.com/AlineIoste/teste/raw/main/SynapseControl.cpython-38-x86_64-linux-gnu.so"
|
| 8 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
|
@@ -26,7 +25,10 @@ def download_so():
|
|
| 26 |
download_so()
|
| 27 |
|
| 28 |
# Verifique se o arquivo foi baixado corretamente
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
| 30 |
st.write("File downloaded successfully.")
|
| 31 |
else:
|
| 32 |
st.write("Failed to download the file.")
|
|
|
|
| 2 |
import requests
|
| 3 |
import streamlit as st
|
| 4 |
|
|
|
|
| 5 |
def download_so():
|
| 6 |
url = "https://github.com/AlineIoste/teste/raw/main/SynapseControl.cpython-38-x86_64-linux-gnu.so"
|
| 7 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
| 25 |
download_so()
|
| 26 |
|
| 27 |
# Verifique se o arquivo foi baixado corretamente
|
| 28 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 29 |
+
output_path = os.path.join(current_dir, "SynapseControl.cpython-38-x86_64-linux-gnu.so")
|
| 30 |
+
|
| 31 |
+
if os.path.exists(output_path):
|
| 32 |
st.write("File downloaded successfully.")
|
| 33 |
else:
|
| 34 |
st.write("Failed to download the file.")
|