Update app.py
Browse files
app.py
CHANGED
@@ -422,7 +422,8 @@ if uploaded_file:
|
|
422 |
# Question Answering
|
423 |
with qa_tab:
|
424 |
if qa_mode:
|
425 |
-
with st.spinner("
|
|
|
426 |
try:
|
427 |
qa_pipeline = load_qa_model(nlp_model)
|
428 |
qa_results = perform_qa(full_text, custom_questions, qa_pipeline, confidence_threshold)
|
|
|
422 |
# Question Answering
|
423 |
with qa_tab:
|
424 |
if qa_mode:
|
425 |
+
with st.spinner("Please note: Response times may take up to a minute due to CPU usage on the free tier of Hugging Face."):
|
426 |
+
|
427 |
try:
|
428 |
qa_pipeline = load_qa_model(nlp_model)
|
429 |
qa_results = perform_qa(full_text, custom_questions, qa_pipeline, confidence_threshold)
|