Spaces:
Sleeping
Sleeping
Commit
·
b59e023
1
Parent(s):
90dab6e
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ from streamlit_chat import message
|
|
3 |
import requests
|
4 |
st.set_page_config(layout="wide")
|
5 |
|
6 |
-
API_URL = "https://
|
7 |
-
headers = {"Content-Type": "application/json"}
|
8 |
|
9 |
def query(payload):
|
10 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
3 |
import requests
|
4 |
st.set_page_config(layout="wide")
|
5 |
|
6 |
+
API_URL = "https://medicalexpertapi.azure-api.net/diagnose/"
|
7 |
+
headers = {"Content-Type": "application/json", "Ocp-Apim-Subscription-Key":st.secrets["APIKEY"]}
|
8 |
|
9 |
def query(payload):
|
10 |
response = requests.post(API_URL, headers=headers, json=payload)
|