final changes
This commit is contained in:
+2
-2
@@ -12,7 +12,7 @@ def normalize(x):
|
||||
|
||||
|
||||
def get_gdd_until(date):
|
||||
temp=pd.read_csv('/tmp/temp', sep=',')
|
||||
temp=pd.read_csv('~/tmp/temp', sep=',')
|
||||
y=int(temp[temp.Datum==date].index.values)
|
||||
GDD_date=0
|
||||
for x in range(y+1):
|
||||
@@ -21,7 +21,7 @@ def get_gdd_until(date):
|
||||
return GDD_date
|
||||
|
||||
|
||||
def predict_blooming(date,gdd_infile='/tmp/wachstumsgradtag.csv',climate_infile='/tmp/climate_heidelberg_tima_and_date.csv'):
|
||||
def predict_blooming(date,gdd_infile='~/tmp/wachstumsgradtag.csv',climate_infile='~/tmp/climate_heidelberg_tima_and_date.csv'):
|
||||
gdd_date = get_gdd_until(date)
|
||||
gdd_trees = pd.read_csv(gdd_infile, sep=',', encoding='utf-8')
|
||||
monthly_temp = pd.read_csv(climate_infile,sep='\t')
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<div id='heading'>
|
||||
<div class='inner'>
|
||||
<img src='{% static 'favicon.ico' %}' />
|
||||
<h1 id='title'>Bloom up your region</h1>
|
||||
<h1 id='title'>Spring Up Your Region</h1>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -36,6 +36,8 @@ function identify() {
|
||||
|
||||
<input id="image_in" type="file" accept="image/*" capture="camera" />
|
||||
|
||||
<br>
|
||||
|
||||
<button id="btn_identify" class="btn btn-default" onclick="identify()">Identify the tree</button>
|
||||
|
||||
<div id="loader" class="loader hidden"></div>
|
||||
|
||||
Reference in New Issue
Block a user