Spaces:
Runtime error
Runtime error
Vaibhavbrkn
commited on
Commit
Β·
63f4262
1
Parent(s):
f3e2dda
Update app.py
Browse files
app.py
CHANGED
@@ -60,6 +60,9 @@ def func(context, slide):
|
|
60 |
temp = slide - orig
|
61 |
ap = filter_keyword(context, ran=slide*2)
|
62 |
outputs = []
|
|
|
|
|
|
|
63 |
for i in range(orig):
|
64 |
|
65 |
inputs = "context: " + context + " keyword: " + ap[i][0]
|
@@ -76,7 +79,8 @@ def func(context, slide):
|
|
76 |
outputs.append((st, "Bad"))
|
77 |
|
78 |
del ap[: orig]
|
79 |
-
print(outputs)
|
|
|
80 |
|
81 |
if temp > 0:
|
82 |
for i in range(temp):
|
@@ -93,7 +97,7 @@ def func(context, slide):
|
|
93 |
outputs.append((st, "Good"))
|
94 |
else:
|
95 |
outputs.append((st, "Bad"))
|
96 |
-
print(outputs)
|
97 |
|
98 |
return outputs
|
99 |
|
|
|
60 |
temp = slide - orig
|
61 |
ap = filter_keyword(context, ran=slide*2)
|
62 |
outputs = []
|
63 |
+
print(slide)
|
64 |
+
print(orig)
|
65 |
+
print(ap)
|
66 |
for i in range(orig):
|
67 |
|
68 |
inputs = "context: " + context + " keyword: " + ap[i][0]
|
|
|
79 |
outputs.append((st, "Bad"))
|
80 |
|
81 |
del ap[: orig]
|
82 |
+
print("first",outputs)
|
83 |
+
print(temp)
|
84 |
|
85 |
if temp > 0:
|
86 |
for i in range(temp):
|
|
|
97 |
outputs.append((st, "Good"))
|
98 |
else:
|
99 |
outputs.append((st, "Bad"))
|
100 |
+
print("second",outputs)
|
101 |
|
102 |
return outputs
|
103 |
|