Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -153,8 +153,11 @@ def predict(query,data):
|
|
153 |
table["Passage"].append(passage)
|
154 |
table["Answer"].append("no_answer_calculated")
|
155 |
table["Probabilities"].append("P(p|q): {}".format(round(probs[i],5)))
|
156 |
-
|
|
|
|
|
157 |
df = pd.DataFrame(table)
|
|
|
158 |
print("time: "+ str(time.time()-start))
|
159 |
|
160 |
with open("HISTORY.txt","a", encoding = "utf-8") as f:
|
|
|
153 |
table["Passage"].append(passage)
|
154 |
table["Answer"].append("no_answer_calculated")
|
155 |
table["Probabilities"].append("P(p|q): {}".format(round(probs[i],5)))
|
156 |
+
|
157 |
+
|
158 |
+
|
159 |
df = pd.DataFrame(table)
|
160 |
+
print(df)
|
161 |
print("time: "+ str(time.time()-start))
|
162 |
|
163 |
with open("HISTORY.txt","a", encoding = "utf-8") as f:
|