lekkalar commited on
Commit
44ffff3
1 Parent(s): a03a974

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -7
app.py CHANGED
@@ -49,13 +49,19 @@ def answer_query(query):
49
  question = query
50
  return pdf_qa.run(question)
51
 
52
- html = """
53
- <div style="text-align:center; max width: 700px;">
54
- <h1>ChatPDF</h1>
55
- <p> Upload a PDF File, then click on Load PDF File <br>
56
- Once the document has been loaded you can begin chatting with the PDF =)
57
- </div>"""
58
- css = """container{max-width:700px; margin-left:auto; margin-right:auto,padding:20px}"""
 
 
 
 
 
 
59
  with gr.Blocks(css=css,theme=gr.themes.Monochrome()) as demo:
60
  gr.HTML(html)
61
  with gr.Column():
 
49
  question = query
50
  return pdf_qa.run(question)
51
 
52
+ css="""
53
+ #col-container {max-width: 700px; margin-left: auto; margin-right: auto;}
54
+ """
55
+
56
+ title = """
57
+ <div style="text-align: center;max-width: 700px;">
58
+ <h1>Chatbot for PDFs - GPT-4</h1>
59
+ <p style="text-align: center;">Upload a .PDF, click the "Load PDF to LangChain" button, <br />
60
+ Wait for the Status to show Ready, start typing your questions. <br />
61
+ The app is built on GPT-4</p>
62
+ </div>
63
+ """
64
+
65
  with gr.Blocks(css=css,theme=gr.themes.Monochrome()) as demo:
66
  gr.HTML(html)
67
  with gr.Column():