Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,6 @@ def readitaloud(result):
|
|
152 |
#return result
|
153 |
|
154 |
def chat_with_model(prompt, document_section, model_choice='Llama-2-7b-chat-hf'):
|
155 |
-
try:
|
156 |
endpoint_url = 'https://qe55p8afio98s0u3.us-east-1.aws.endpoints.huggingface.cloud' # Dr Llama
|
157 |
hf_token = os.getenv('HF_KEY')
|
158 |
client = InferenceClient(endpoint_url, token=hf_token)
|
|
|
152 |
#return result
|
153 |
|
154 |
def chat_with_model(prompt, document_section, model_choice='Llama-2-7b-chat-hf'):
|
|
|
155 |
endpoint_url = 'https://qe55p8afio98s0u3.us-east-1.aws.endpoints.huggingface.cloud' # Dr Llama
|
156 |
hf_token = os.getenv('HF_KEY')
|
157 |
client = InferenceClient(endpoint_url, token=hf_token)
|