bhaskatripathi / pdfGPT

PDF GPT allows you to chat with the contents of your PDF file by using GPT capabilities. The most effective open source solution to turn your pdf files in a chatbot!
https://huggingface.co/spaces/bhaskartripathi/pdfGPT_Turbo
MIT License
6.92k stars 833 forks source link

docker-compose up error #60

Open panw3i opened 1 year ago

panw3i commented 1 year ago
[+] Running 2/0
 ✔ Container pdfgpt-pdf-gpt-1          Created                                                                                                                                                                  0.0s 
 ✔ Container pdfgpt-langchain-serve-1  Created                                                                                                                                                                  0.0s 
Attaching to pdfgpt-langchain-serve-1, pdfgpt-pdf-gpt-1
pdfgpt-langchain-serve-1  | 
pdfgpt-pdf-gpt-1          | Traceback (most recent call last):
pdfgpt-pdf-gpt-1          |   File "app.py", line 92, in <module>
pdfgpt-pdf-gpt-1          |     demo.app.server.timeout = 60000 # Set the maximum return time for the results of accessing the upstream server
pdfgpt-pdf-gpt-1          | AttributeError: 'App' object has no attribute 'server'
pdfgpt-langchain-serve-1  | ────────────────────────── 🎉 Flow is ready to serve! ──────────────────────────
pdfgpt-langchain-serve-1  | ╭────────────── 🔗 Endpoint ───────────────╮
pdfgpt-langchain-serve-1  | │  ⛓        Protocol                 HTTP  │
pdfgpt-langchain-serve-1  | │  🏠          Local         0.0.0.0:8080  │
pdfgpt-langchain-serve-1  | │  🔒        Private      172.25.0.3:8080  │
pdfgpt-langchain-serve-1  | ╰──────────────────────────────────────────╯
pdfgpt-langchain-serve-1  | ╭─────────── 💎 HTTP extension ────────────╮
pdfgpt-langchain-serve-1  | │  💬          Swagger UI        .../docs  │
pdfgpt-langchain-serve-1  | │  📚               Redoc       .../redoc  │
pdfgpt-langchain-serve-1  | ╰──────────────────────────────────────────╯
pdfgpt-langchain-serve-1  | Do you love open source? Help us improve Jina in just 1 minute and 30 seconds by
pdfgpt-langchain-serve-1  | taking our survey: 
pdfgpt-langchain-serve-1  | https://10sw1tcpld4.typeform.com/jinasurveyfeb23?utm_source=jina(Set environment
pdfgpt-langchain-serve-1  | variable JINA_HIDE_SURVEY=1 to hide this message.)
pdfgpt-pdf-gpt-1 exited with code 1
taherfattahi commented 1 year ago

Hi, To fix your problem, you can comment out this line of code in app.py: demo.app.server.timeout = 60000

sesam commented 1 year ago

@taherfattahi was that enough for you to get access to the web UI? I tried that and some more things, but nothing helped to get the web UI accessible.