Spaces:
Sleeping
Sleeping
update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ else:
|
|
| 13 |
st.write(f"Hugging Face API token found: {hf_token[:4]}...") # Debug statement, only showing the first 4 characters for security
|
| 14 |
|
| 15 |
# Initialize the model and tokenizer using Hugging Face pipeline
|
| 16 |
-
model_id = "meta-llama/Meta-Llama-3.1-
|
| 17 |
pipeline = transformers.pipeline("text-generation", model=model_id, use_auth_token=hf_token)
|
| 18 |
|
| 19 |
def generate_response(prompt):
|
|
|
|
| 13 |
st.write(f"Hugging Face API token found: {hf_token[:4]}...") # Debug statement, only showing the first 4 characters for security
|
| 14 |
|
| 15 |
# Initialize the model and tokenizer using Hugging Face pipeline
|
| 16 |
+
model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
|
| 17 |
pipeline = transformers.pipeline("text-generation", model=model_id, use_auth_token=hf_token)
|
| 18 |
|
| 19 |
def generate_response(prompt):
|