multimodalart HF Staff commited on
Commit
aa69d1f
·
verified ·
1 Parent(s): 5227878

Update app.py

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