salimcodes commited on
Commit
f6d1c85
·
1 Parent(s): 7ca9d2b

Update untitled2.py

Browse files
Files changed (1) hide show
  1. untitled2.py +1 -4
untitled2.py CHANGED
@@ -7,9 +7,6 @@ Original file is located at
7
  https://colab.research.google.com/drive/1EU-VIsBUmCvPXWODe7G3MMx3nOyrhLE3
8
  """
9
 
10
- !pip install pygal
11
-
12
- !pip install gradio
13
 
14
  import pandas as pd
15
  import pygal
@@ -18,7 +15,7 @@ import numpy as np
18
 
19
  import gradio as gr
20
  def Predict(inputName):
21
- dataFrame = pd.read_json(r"MOCK_DATA (1).json")
22
  safe_distance = 0.0020288 # a radial distance of 6 feet in kilometers
23
  model = DBSCAN(eps=safe_distance, min_samples=2, metric='haversine').fit(dataFrame[['Latitude', 'Longitude']])
24
  core_samples_mask = np.zeros_like(model.labels_, dtype=bool)
 
7
  https://colab.research.google.com/drive/1EU-VIsBUmCvPXWODe7G3MMx3nOyrhLE3
8
  """
9
 
 
 
 
10
 
11
  import pandas as pd
12
  import pygal
 
15
 
16
  import gradio as gr
17
  def Predict(inputName):
18
+ dataFrame = pd.read_json(r"MOCK_DATA.json")
19
  safe_distance = 0.0020288 # a radial distance of 6 feet in kilometers
20
  model = DBSCAN(eps=safe_distance, min_samples=2, metric='haversine').fit(dataFrame[['Latitude', 'Longitude']])
21
  core_samples_mask = np.zeros_like(model.labels_, dtype=bool)