Dacho688 commited on
Commit
153efb4
·
1 Parent(s): 1c450f0

Update request_test.py

Browse files
Files changed (1) hide show
  1. app/request_test.py +2 -6
app/request_test.py CHANGED
@@ -1,9 +1,5 @@
1
  # -*- coding: utf-8 -*-
2
- """
3
- Created on Thu Nov 20 17:00:22 2025
4
 
5
- @author: dkondic
6
- """
7
  import requests
8
 
9
  data = [
@@ -11,10 +7,10 @@ data = [
11
  "MENU_TYP_DESC":"MEXICAN",
12
  "PYR_SEG_CD":"Education",
13
  "DIV_NBR":"20",
14
- "WKLY_ORDERS": 1,
15
  "PERC_EB":0.80,
16
  "AVG_WKLY_SALES":2656.04,
17
  "AVG_WKLY_CASES":67.00}]
18
 
19
- response = requests.post("http://localhost:7860/predict", json=data)
20
  print(response.json())
 
1
  # -*- coding: utf-8 -*-
 
 
2
 
 
 
3
  import requests
4
 
5
  data = [
 
7
  "MENU_TYP_DESC":"MEXICAN",
8
  "PYR_SEG_CD":"Education",
9
  "DIV_NBR":"20",
10
+ "WKLY_ORDERS": 15,
11
  "PERC_EB":0.80,
12
  "AVG_WKLY_SALES":2656.04,
13
  "AVG_WKLY_CASES":67.00}]
14
 
15
+ response = requests.post("https://dkondic-ml-api.hf.space/predict", json=data)
16
  print(response.json())