Spaces:
Running
Running
Commit
·
678e471
1
Parent(s):
3657970
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def add_text(chatstate, query, qa):
|
|
62 |
|
63 |
return chatstate, chatstate, qa
|
64 |
|
65 |
-
with gr.Blocks() as demo:
|
66 |
qa = pdf_text = embeddings = vectorstore = azure_embeddings = gr.State([])
|
67 |
with gr.Row(visible=False) as chat_row:
|
68 |
chatbot = gr.Chatbot()
|
@@ -82,8 +82,6 @@ with gr.Blocks() as demo:
|
|
82 |
output_text = gr.TextArea()
|
83 |
upload_btn.click(upload_pdf, inputs=[file, pdf_text, embeddings, vectorstore, azure_embeddings, qa], outputs=[output_text, pdf_text, embeddings, vectorstore, azure_embeddings, qa, chat_row, submit_row, upload_column])
|
84 |
|
85 |
-
|
86 |
-
|
87 |
|
88 |
|
89 |
|
|
|
62 |
|
63 |
return chatstate, chatstate, qa
|
64 |
|
65 |
+
with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
66 |
qa = pdf_text = embeddings = vectorstore = azure_embeddings = gr.State([])
|
67 |
with gr.Row(visible=False) as chat_row:
|
68 |
chatbot = gr.Chatbot()
|
|
|
82 |
output_text = gr.TextArea()
|
83 |
upload_btn.click(upload_pdf, inputs=[file, pdf_text, embeddings, vectorstore, azure_embeddings, qa], outputs=[output_text, pdf_text, embeddings, vectorstore, azure_embeddings, qa, chat_row, submit_row, upload_column])
|
84 |
|
|
|
|
|
85 |
|
86 |
|
87 |
|