Spaces:
Runtime error
Runtime error
Download app.py from Hitendri/Email_Response_Generator: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/spaces/Hitendri/Email_Response_Generator/resolve/main/app.py
- Command line
-
hf download hf://spaces/Hitendri/Email_Response_Generator/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Hitendri/Email_Response_Generator/resolve/main/app.py
361 Bytes
| from huggingface_hub import Repository | |
| import os | |
| from huggingface_hub import hf_hub_download | |
| from huggingface_hub import login | |
| token=os.environ["Auth_token"] | |
| # Download from a dataset | |
| hf_hub_download(repo_id="Hitendri/DFM_PoC",local_dir=os.getcwd(), filename="main.py", repo_type="dataset",use_auth_token=token) | |
| print(os.listdir()) | |
| from main import run | |
| run() | |