Update app.py
Browse files
app.py
CHANGED
@@ -400,7 +400,7 @@ Assistant:"""
|
|
400 |
# Function to generate text using Hugging Face API
|
401 |
def generate_text(input_text, temperature=0.3, repetition_penalty=1.2, top_p=0.9):
|
402 |
print("Generating text using Hugging Face API...")
|
403 |
-
endpoint = "https://api-inference.huggingface.co/models/
|
404 |
headers = {
|
405 |
"Authorization": f"Bearer {HUGGINGFACE_API_TOKEN}",
|
406 |
"Content-Type": "application/json"
|
|
|
400 |
# Function to generate text using Hugging Face API
|
401 |
def generate_text(input_text, temperature=0.3, repetition_penalty=1.2, top_p=0.9):
|
402 |
print("Generating text using Hugging Face API...")
|
403 |
+
endpoint = "https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-8B-Instruct"
|
404 |
headers = {
|
405 |
"Authorization": f"Bearer {HUGGINGFACE_API_TOKEN}",
|
406 |
"Content-Type": "application/json"
|