Spaces:
Build error
Build error
Download quick_fetch.py from arashx07/Final_Assignment_Template: direct link, hf CLI and curl.
- Browser
- Download file 252 Bytes
-
https://huggingface.co/spaces/arashx07/Final_Assignment_Template/resolve/main/quick_fetch.py
- Command line
-
hf download hf://spaces/arashx07/Final_Assignment_Template/quick_fetch.py
-
curl -L -o quick_fetch.py https://huggingface.co/spaces/arashx07/Final_Assignment_Template/resolve/main/quick_fetch.py
252 Bytes
| import requests, json | |
| from app import DEFAULT_API_URL | |
| QUESTIONS = requests.get(f"{DEFAULT_API_URL}/questions", timeout=15).json() | |
| with open("questions.json", "w") as f: | |
| json.dump(QUESTIONS, f, indent=2) | |
| print(f"Saved {len(QUESTIONS)} questions") | |