Shreyas094 commited on
Commit
76dfeb6
·
verified ·
1 Parent(s): e283410

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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/mistralai/Mistral-7B-Instruct-v0.3"
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"