Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,15 @@ import random
|
|
10 |
import io
|
11 |
|
12 |
URL = "http://localhost:5000/predictions"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
HEADERS = {
|
14 |
"Content-Type": "application/json",
|
15 |
}
|
|
|
10 |
import io
|
11 |
|
12 |
URL = "http://localhost:5000/predictions"
|
13 |
+
SCHEMA_URL = "http://localhost:5000/openapi.json"
|
14 |
+
|
15 |
+
def get_schema():
|
16 |
+
response = requests.post(SCHEMA_URL)
|
17 |
+
json_response = response.json()
|
18 |
+
print(json_response)
|
19 |
+
|
20 |
+
get_schema()
|
21 |
+
|
22 |
HEADERS = {
|
23 |
"Content-Type": "application/json",
|
24 |
}
|