Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,13 +49,19 @@ def answer_query(query):
|
|
49 |
question = query
|
50 |
return pdf_qa.run(question)
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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():
|