Spaces:
Running
Running
Update app.py
Browse files
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("
|
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("
|
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):
|