awacke1 commited on
Commit
803e57f
·
1 Parent(s): 2020d62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -152,8 +152,8 @@ def readitaloud(result):
152
  #return result
153
 
154
  def chat_with_model(prompt, document_section, model_choice='Llama-2-7b-chat-hf'):
155
- # API_URL = 'https://qe55p8afio98s0u3.us-east-1.aws.endpoints.huggingface.cloud' # Dr Llama
156
- API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-2-7b-chat-hf" # HF model for Llama 7B
157
  #API_KEY = os.getenv('API_KEY')
158
  API_KEY = os.getenv('HF_KEY')
159
  MODEL1="meta-llama/Llama-2-7b-chat-hf"
 
152
  #return result
153
 
154
  def chat_with_model(prompt, document_section, model_choice='Llama-2-7b-chat-hf'):
155
+ API_URL = 'https://qe55p8afio98s0u3.us-east-1.aws.endpoints.huggingface.cloud' # Dr Llama
156
+ #API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-2-7b-chat-hf" # HF model for Llama 7B
157
  #API_KEY = os.getenv('API_KEY')
158
  API_KEY = os.getenv('HF_KEY')
159
  MODEL1="meta-llama/Llama-2-7b-chat-hf"