Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,11 +72,12 @@ css="""
|
|
| 72 |
|
| 73 |
title = """
|
| 74 |
<div style="text-align: center;max-width: 700px;">
|
| 75 |
-
<
|
|
|
|
| 76 |
<p style="text-align: center;">'Load a File', click the "Upload file to Moli" button, <br />
|
| 77 |
wait for the Status to show Ready. Type your question, click on "Ask Moli" <br />
|
| 78 |
The app is built on GPT-4</p>
|
| 79 |
-
|
| 80 |
</div>
|
| 81 |
"""
|
| 82 |
|
|
@@ -98,9 +99,6 @@ with gr.Blocks(css=css,theme=gr.themes.Monochrome()) as demo:
|
|
| 98 |
input = gr.Textbox(label="Type in your question")
|
| 99 |
output = gr.Textbox(label="Answer")
|
| 100 |
submit_query = gr.Button("Ask Moli").style(full_width=False)
|
| 101 |
-
|
| 102 |
-
with gr.Row():
|
| 103 |
-
gr.Image(value="Vaultedge-logo-with-name.png", shape=(50,50))
|
| 104 |
|
| 105 |
|
| 106 |
load_pdf.click(load_pdf_and_generate_embeddings, inputs=[pdf_doc, openai_key, relevant_pages], outputs=status)
|
|
|
|
| 72 |
|
| 73 |
title = """
|
| 74 |
<div style="text-align: center;max-width: 700px;">
|
| 75 |
+
<img src="file=Vaultedge-logo-with-name.png" style="width: 30%; min-width: 60px; display: block; margin: auto; background-color: transparent;">
|
| 76 |
+
<h1>Ask Moli - Chatbot for complex documents</h1>
|
| 77 |
<p style="text-align: center;">'Load a File', click the "Upload file to Moli" button, <br />
|
| 78 |
wait for the Status to show Ready. Type your question, click on "Ask Moli" <br />
|
| 79 |
The app is built on GPT-4</p>
|
| 80 |
+
|
| 81 |
</div>
|
| 82 |
"""
|
| 83 |
|
|
|
|
| 99 |
input = gr.Textbox(label="Type in your question")
|
| 100 |
output = gr.Textbox(label="Answer")
|
| 101 |
submit_query = gr.Button("Ask Moli").style(full_width=False)
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
|
| 104 |
load_pdf.click(load_pdf_and_generate_embeddings, inputs=[pdf_doc, openai_key, relevant_pages], outputs=status)
|