Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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"
|