Spaces:
Runtime error
Runtime error
Commit ·
be71b07
1
Parent(s): 54660d3
updated app
Browse files
app.py
CHANGED
|
@@ -4,9 +4,6 @@ import gradio as gr
|
|
| 4 |
# Define the model name
|
| 5 |
model_name = "tiiuae/falcon-10b-instruct"
|
| 6 |
|
| 7 |
-
# Replace this with your Hugging Face token
|
| 8 |
-
hf_token = "your_huggingface_token_here"
|
| 9 |
-
|
| 10 |
# Load the tokenizer and model with the token
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=hf_token)
|
| 12 |
model = AutoModelForCausalLM.from_pretrained(
|
|
|
|
| 4 |
# Define the model name
|
| 5 |
model_name = "tiiuae/falcon-10b-instruct"
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
# Load the tokenizer and model with the token
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=hf_token)
|
| 9 |
model = AutoModelForCausalLM.from_pretrained(
|