Update app.py
Browse files
app.py
CHANGED
@@ -31,10 +31,10 @@ def process_request(url, question, press_type, compression_ratio):
|
|
31 |
|
32 |
# Generate prediction
|
33 |
pred_answer = pipe(context, question=question, press=press)["answer"]
|
34 |
-
return
|
35 |
|
36 |
except Exception as e:
|
37 |
-
return str(e)
|
38 |
|
39 |
# Load pipeline
|
40 |
device = "cuda:0"
|
|
|
31 |
|
32 |
# Generate prediction
|
33 |
pred_answer = pipe(context, question=question, press=press)["answer"]
|
34 |
+
return pred_answer
|
35 |
|
36 |
except Exception as e:
|
37 |
+
return str(e)
|
38 |
|
39 |
# Load pipeline
|
40 |
device = "cuda:0"
|