Spaces:
Build error
Build error
Update app.py
Browse files72 unmodified lines7374757677787980818272 unmodified linesfile_path = f"./{file.filename}"with open(file_path, "wb") as f:f.write(await file.read())SimpleDirectoryReader = download_loader('SimpleDirectoryReader')reader = SimpleDirectoryReader('.')documents = reader.load_data()return {"status": "PDFs indexed successfully"}# Chat with the LLM for summarized lecture content@app.post("/chat_summary/")72 unmodified lines7374757677787980818272 unmodified linesfile_path = f"./{file.filename}"with open(file_path, "wb") as f:f.write(await file.read())SimpleDirectoryReader = download_loader('SimpleDirectoryReader')reader = SimpleDirectoryReader('.')documents = reader.load_data()return {"status": "PDFs indexed successfully"}# Chat with the LLM for summarized lecture content@app.post("/chat_summary/")
app.py+4-4