Spaces:
Runtime error
Runtime error
Download app.py from suprimedev/viru: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/spaces/suprimedev/viru/resolve/main/app.py
- Command line
-
hf download hf://spaces/suprimedev/viru/app.py
-
curl -L -o app.py https://huggingface.co/spaces/suprimedev/viru/resolve/main/app.py
255 Bytes
| import gradio as gr | |
| # Use a pipeline as a high-level helper | |
| from transformers import pipeline | |
| messages = [ | |
| {"role": "user", "content": "Who are you?"}, | |
| ] | |
| pipe = pipeline("text-generation", model="meta-llama/Meta-Llama-3.1-8B-Instruct") | |
| pipe(messages) |