Spaces:
Sleeping
Sleeping
File size: 620 Bytes
4fb0e29 c98e67e 5eab87b c98e67e 5eab87b 4fb0e29 2ae98e3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import requests
import os
def download_so():
url = "https://github.com/AlineIoste/teste/raw/main/SynapseControl.cpython-310-x86_64-linux-gnu.so"
current_dir = os.path.dirname(os.path.abspath(__file__))
output_path = os.path.join(current_dir, "SynapseControl.cpython-310-x86_64-linux-gnu.so")
if not os.path.exists(output_path):
response = requests.get(url)
response.raise_for_status() # Para garantir que o download foi bem-sucedido
with open(output_path, 'wb') as f:
f.write(response.content)
print(f"Downloaded {url} to {output_path}")
download_so()
|