Spaces:
Runtime error
Runtime error
Update app.py
Browse files56 unmodified lines575859606061626356 unmodified lines model = AutoModel.from_pretrained("suno/bark-small").to(device) # Extract abstract abstract_text = extract_abstract(pdf_file) abstract_text = extract_text_from_pdf(pdf_file)
if not abstract_text: return "No 'abstract' section found in the uploaded PDF. Please upload a different PDF."app.py+1-1