Spaces:
Sleeping
Sleeping
Commit
·
ba2367e
1
Parent(s):
59db485
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
29 |
model.to(device)
|
30 |
processor = SquadV2Processor()
|
31 |
|
32 |
-
def run_prediction(
|
33 |
print(question)
|
34 |
"""Setup function to compute predictions"""
|
35 |
examples = []
|
|
|
29 |
model.to(device)
|
30 |
processor = SquadV2Processor()
|
31 |
|
32 |
+
def run_prediction(context_text, question):
|
33 |
print(question)
|
34 |
"""Setup function to compute predictions"""
|
35 |
examples = []
|