Update presentation_assistant/presentation_assistant.py
Browse files
presentation_assistant/presentation_assistant.py
CHANGED
@@ -13,7 +13,7 @@ API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-2-70b-ch
|
|
13 |
headers = {"Authorization": "Bearer "+hf_token}
|
14 |
|
15 |
def query(payload):
|
16 |
-
response = requests.post(API_URL, headers=headers, json=payload)
|
17 |
return response.json()
|
18 |
|
19 |
sys.path.append("/home/user/app")
|
|
|
13 |
headers = {"Authorization": "Bearer "+hf_token}
|
14 |
|
15 |
def query(payload):
|
16 |
+
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
17 |
return response.json()
|
18 |
|
19 |
sys.path.append("/home/user/app")
|