Spaces:
Running
Running
Download tempCodeRunnerFile.python from ManalifeAI/Pathora: direct link, hf CLI and curl.
- Browser
- Download file 232 Bytes
-
https://huggingface.co/spaces/ManalifeAI/Pathora/resolve/main/tempCodeRunnerFile.python
- Command line
-
hf download hf://spaces/ManalifeAI/Pathora/tempCodeRunnerFile.python
-
curl -L -o tempCodeRunnerFile.python https://huggingface.co/spaces/ManalifeAI/Pathora/resolve/main/tempCodeRunnerFile.python
232 Bytes
| from huggingface_hub import InferenceClient | |
| import os | |
| client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3", token=os.getenv("HF_TOKEN")) | |
| res = client.text_generation("Hello, this is a test.", max_new_tokens=20) | |
| print(res) | |