ThePixOne commited on
Commit
aa4548a
1 Parent(s): 85ba7c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -91,7 +91,7 @@ def predict(query,data):
91
  now = datetime.now()
92
  current_time = now.strftime("%H:%M:%S")
93
  try:
94
- df = pd.read_csv("HISTORY/{}.csv".format(hash(st)))
95
  list_outputs = []
96
  for i in range(k):
97
  temp = [df.iloc[n] for n in range(k)][i]
@@ -165,7 +165,7 @@ def predict(query,data):
165
  f.write(" " + str(current_time))
166
  f.write("\n")
167
  f.close()
168
- df.to_csv("HISTORY/{}.csv".format(hash(st)), index=False)
169
 
170
  list_outputs = []
171
  for i in range(k):
 
91
  now = datetime.now()
92
  current_time = now.strftime("%H:%M:%S")
93
  try:
94
+ df = pd.read_csv("{}.csv".format(hash(st)))
95
  list_outputs = []
96
  for i in range(k):
97
  temp = [df.iloc[n] for n in range(k)][i]
 
165
  f.write(" " + str(current_time))
166
  f.write("\n")
167
  f.close()
168
+ df.to_csv("{}.csv".format(hash(st)), index=False)
169
 
170
  list_outputs = []
171
  for i in range(k):