awacke1 commited on
Commit
d900de3
·
1 Parent(s): 0ed0f57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
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)