Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -0
src/streamlit_app.py
CHANGED
|
@@ -2,6 +2,9 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
| 2 |
import streamlit as st
|
| 3 |
import torch
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
st.title("Tokenizer Test Space")
|
| 6 |
|
| 7 |
model_id = "google/gemma-2b-it" # Test with the official model first
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
import torch
|
| 4 |
|
| 5 |
+
from huggingface_hub import login
|
| 6 |
+
login(token="HF_TOKEN")
|
| 7 |
+
|
| 8 |
st.title("Tokenizer Test Space")
|
| 9 |
|
| 10 |
model_id = "google/gemma-2b-it" # Test with the official model first
|