Spaces:
Sleeping
Sleeping
Download setup.py from gladguy/SimpleProject: direct link, hf CLI and curl.
- Browser
- Download file 644 Bytes
-
https://huggingface.co/spaces/gladguy/SimpleProject/resolve/8864f155880bc8ece6bce256c5372bd2bb66936a/setup.py
- Command line
-
hf download hf://spaces/gladguy/SimpleProject@8864f155880bc8ece6bce256c5372bd2bb66936a/setup.py
-
curl -L -o setup.py https://huggingface.co/spaces/gladguy/SimpleProject/resolve/8864f155880bc8ece6bce256c5372bd2bb66936a/setup.py
644 Bytes
| #!/usr/bin/env python3 | |
| """ | |
| Setup script to configure API keys for AnatomyBot | |
| """ | |
| import os | |
| def setup_env(): | |
| env_path = ".env" | |
| print("=== AnatomyBot Setup ===\n") | |
| print("Please enter your API keys:\n") | |
| serpapi_key = input("SERPAPI_KEY: ").strip() | |
| hyperbolic_key = input("HYPERBOLIC_API_KEY: ").strip() | |
| with open(env_path, "w") as f: | |
| f.write(f"SERPAPI_KEY={serpapi_key}\n") | |
| f.write(f"HYPERBOLIC_API_KEY={hyperbolic_key}\n") | |
| print(f"\n✅ API keys saved to {env_path}") | |
| print("\nYou can now run the application with: python app.py") | |
| if __name__ == "__main__": | |
| setup_env() | |