Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,7 @@ DISCLAIMER: I do no have idea what happens to the pdfs that you upload and who h
|
|
| 12 |
"""
|
| 13 |
title = "QA answering from a pdf."
|
| 14 |
|
|
|
|
| 15 |
import numpy as np
|
| 16 |
import time
|
| 17 |
import hashlib
|
|
@@ -172,6 +173,7 @@ def predict(query,data):
|
|
| 172 |
df = pd.DataFrame(table)
|
| 173 |
print(df)
|
| 174 |
print("time: "+ str(time.time()-start))
|
|
|
|
| 175 |
|
| 176 |
with open("HISTORY.txt","a", encoding = "utf-8") as f:
|
| 177 |
f.write(hist)
|
|
|
|
| 12 |
"""
|
| 13 |
title = "QA answering from a pdf."
|
| 14 |
|
| 15 |
+
from datetime import datetime
|
| 16 |
import numpy as np
|
| 17 |
import time
|
| 18 |
import hashlib
|
|
|
|
| 173 |
df = pd.DataFrame(table)
|
| 174 |
print(df)
|
| 175 |
print("time: "+ str(time.time()-start))
|
| 176 |
+
print(datetime.today().strftime('%Y-%m-%d %H:%M:%S'))
|
| 177 |
|
| 178 |
with open("HISTORY.txt","a", encoding = "utf-8") as f:
|
| 179 |
f.write(hist)
|