Spaces:
Sleeping
Sleeping
# Directory to save the downloaded files | |
destination_dir="/Users/a2014/src" | |
# URLs of the files to be downloaded | |
file_urls=( | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/alpine.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/createLlamaPrompt.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/createSpace.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/daisy.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/docker.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/generateFiles.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/getGradioApp.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/getReactApp.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/getStreamlitApp.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/getWebApp.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/gradioDoc.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/index.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/isPythonOrGradioAppPrompt.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/isReactAppPrompt.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/isStreamlitAppPrompt.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/parseTutorial.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/streamlitDoc.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/types.mts?download=true" | |
"https://huggingface.co/spaces/acecalisto3/ai-app-factory/resolve/main/src/typescript.mts?download=true" | |
) | |
# Create the destination directory if it doesn't exist | |
mkdir -p "$destination_dir" | |
# Download each file | |
for url in "${file_urls[@]}"; do | |
filename=$(basename "$url") | |
wget -P "$destination_dir" "$url" | |
done | |
echo "All files have been downloaded to $destination_dir" |