ITNovaML commited on
Commit
3cc3d3b
1 Parent(s): e79ac05

Update views/dashboard.py

Browse files
Files changed (1) hide show
  1. views/dashboard.py +4 -4
views/dashboard.py CHANGED
@@ -34,7 +34,7 @@ class Dashboard:
34
  def view(self, model):
35
  # st.title(model.pageTitle)
36
 
37
- api_url = "https://katanaml-org-sparrow-ml.hf.space/api-inference/v1/sparrow-ml/statistics"
38
  json_data_inference = []
39
  response = requests.get(api_url)
40
  if response.status_code == 200:
@@ -42,7 +42,7 @@ class Dashboard:
42
  else:
43
  print(f"Error: Unable to fetch data from the API (status code {response.status_code})")
44
 
45
- api_url_t = "https://katanaml-org-sparrow-ml.hf.space/api-training/v1/sparrow-ml/statistics/training"
46
  json_data_training = []
47
  response_t = requests.get(api_url_t)
48
  if response_t.status_code == 200:
@@ -50,7 +50,7 @@ class Dashboard:
50
  else:
51
  print(f"Error: Unable to fetch data from the API (status code {response_t.status_code})")
52
 
53
- api_url_e = "https://katanaml-org-sparrow-ml.hf.space/api-training/v1/sparrow-ml/statistics/evaluate"
54
  json_data_evaluate = []
55
  response_e = requests.get(api_url_e)
56
  if response_e.status_code == 200:
@@ -277,7 +277,7 @@ class Dashboard:
277
  with st.container():
278
  st.write(model.titleDatasetInfo)
279
 
280
- api_url = "https://katanaml-org-sparrow-data.hf.space/api-dataset/v1/sparrow-data/dataset_info"
281
 
282
  # Make the GET request
283
  response = requests.get(api_url)
 
34
  def view(self, model):
35
  # st.title(model.pageTitle)
36
 
37
+ api_url = "https://itnovaml-sparrow-ml-itn.hf.space/api-inference/v1/sparrow-ml/statistics"
38
  json_data_inference = []
39
  response = requests.get(api_url)
40
  if response.status_code == 200:
 
42
  else:
43
  print(f"Error: Unable to fetch data from the API (status code {response.status_code})")
44
 
45
+ api_url_t = "https://itnovaml-sparrow-ml-itn.hf.space/api-training/v1/sparrow-ml/statistics/training"
46
  json_data_training = []
47
  response_t = requests.get(api_url_t)
48
  if response_t.status_code == 200:
 
50
  else:
51
  print(f"Error: Unable to fetch data from the API (status code {response_t.status_code})")
52
 
53
+ api_url_e = "https://itnovaml-sparrow-ml-itn.hf.space/api-training/v1/sparrow-ml/statistics/evaluate"
54
  json_data_evaluate = []
55
  response_e = requests.get(api_url_e)
56
  if response_e.status_code == 200:
 
277
  with st.container():
278
  st.write(model.titleDatasetInfo)
279
 
280
+ api_url = "https://itnovaml-sparrow-data-itn.hf.space/api-dataset/v1/sparrow-data/dataset_info"
281
 
282
  # Make the GET request
283
  response = requests.get(api_url)