Spaces:
Sleeping
Sleeping
Download app.py from atepper/tracklist-analysis: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/spaces/atepper/tracklist-analysis/resolve/main/app.py
- Command line
-
hf download hf://spaces/atepper/tracklist-analysis/app.py
-
curl -L -o app.py https://huggingface.co/spaces/atepper/tracklist-analysis/resolve/main/app.py
445 Bytes
| import streamlit as st | |
| from transformers import pipeline | |
| prompt = "hi!" | |
| st.write('Prompt: ' + prompt) | |
| # tokenizer = AutoTokenizer.from_pretrained("google/gemma-7b-it") | |
| # model = AutoModelForCausalLM.from_pretrained("google/gemma-7b-it") | |
| # pipe = pipeline("text-generation", model="google/gemma-7b-it", use_auth_token=st.secrets["HF_ACCESS_TOKEN"]) | |
| pipe = pipeline("text-generation", model="mistralai/Mixtral-8x7B-Instruct-v0.1") | |
| pipe(prompt) |