Spaces:
Sleeping
Sleeping
Peter Michael Gits
Claude
feat: Add Hugging Face and Groq integration with local model support
0334aca Download simpletest.py from pgits/voiceCal-ai: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/pgits/voiceCal-ai/resolve/main/simpletest.py
- Command line
-
hf download hf://spaces/pgits/voiceCal-ai/simpletest.py
-
curl -L -o simpletest.py https://huggingface.co/spaces/pgits/voiceCal-ai/resolve/main/simpletest.py
449 Bytes
| from transformers import AutoTokenizer | |
| # Test if you can access the model | |
| try: | |
| tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct") | |
| print("✅ Qwen2.5-7B-Instruct - Access granted!") | |
| except Exception as e: | |
| print(f"❌ Error: {e}") | |
| try: | |
| tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-128k-instruct") | |
| print("✅ Phi-3-mini - Access granted!") | |
| except Exception as e: | |
| print(f"❌ Error: {e}") | |