Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1360,7 +1360,7 @@ def create_pdf(cname,ename,account_number, directory):
|
|
1360 |
with open(output_file_name, "wb+") as output:
|
1361 |
output.write(filled.read())
|
1362 |
|
1363 |
-
from PyPDF2 import PdfReader, PdfWriter
|
1364 |
|
1365 |
reader = PdfReader(output_file_name)
|
1366 |
writer = PdfWriter()
|
@@ -1371,7 +1371,7 @@ def create_pdf(cname,ename,account_number, directory):
|
|
1371 |
|
1372 |
with open(output_file_name, "wb") as f:
|
1373 |
writer.write(f)
|
1374 |
-
|
1375 |
|
1376 |
|
1377 |
# Get the absolute path
|
@@ -1516,7 +1516,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
1516 |
# Buttons for sample queries
|
1517 |
with gr.Row():
|
1518 |
#sample_button = gr.Button("What are the details of ASN24091600002", elem_classes="gr-buttonbig")
|
1519 |
-
|
1520 |
sample_button2 = gr.Button("Explain Pre-Receiving Yard Management", elem_classes="gr-buttonbig")
|
1521 |
sample_button3 = gr.Button("can you generate a doughnut chart with item name and quantities for warehouse DUBAIWARE", elem_classes="gr-buttonbig")
|
1522 |
sample_button4 = gr.Button("Analyze item name & quantity for different customers in a stacked bar chart for the warehouse DUBAIWARE & send email to [email protected]", elem_classes="gr-button")
|
@@ -1569,7 +1569,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
1569 |
submit_feedback_button.click(lambda x: gr.update(value=''), [], [feedback_textbox])
|
1570 |
|
1571 |
#sample_button.click(handle_query, [sample_button, chatbot], [chatbot])
|
1572 |
-
|
1573 |
sample_button2.click(handle_query, [sample_button2, chatbot], [chatbot])
|
1574 |
sample_button3.click(handle_query, [sample_button3, chatbot], [chatbot])
|
1575 |
sample_button4.click(handle_query, [sample_button4, chatbot], [chatbot])
|
|
|
1360 |
with open(output_file_name, "wb+") as output:
|
1361 |
output.write(filled.read())
|
1362 |
|
1363 |
+
"""from PyPDF2 import PdfReader, PdfWriter
|
1364 |
|
1365 |
reader = PdfReader(output_file_name)
|
1366 |
writer = PdfWriter()
|
|
|
1371 |
|
1372 |
with open(output_file_name, "wb") as f:
|
1373 |
writer.write(f)
|
1374 |
+
"""
|
1375 |
|
1376 |
|
1377 |
# Get the absolute path
|
|
|
1516 |
# Buttons for sample queries
|
1517 |
with gr.Row():
|
1518 |
#sample_button = gr.Button("What are the details of ASN24091600002", elem_classes="gr-buttonbig")
|
1519 |
+
sample_button1 = gr.Button("What are the active warehouses available", elem_classes="gr-buttonbig")
|
1520 |
sample_button2 = gr.Button("Explain Pre-Receiving Yard Management", elem_classes="gr-buttonbig")
|
1521 |
sample_button3 = gr.Button("can you generate a doughnut chart with item name and quantities for warehouse DUBAIWARE", elem_classes="gr-buttonbig")
|
1522 |
sample_button4 = gr.Button("Analyze item name & quantity for different customers in a stacked bar chart for the warehouse DUBAIWARE & send email to [email protected]", elem_classes="gr-button")
|
|
|
1569 |
submit_feedback_button.click(lambda x: gr.update(value=''), [], [feedback_textbox])
|
1570 |
|
1571 |
#sample_button.click(handle_query, [sample_button, chatbot], [chatbot])
|
1572 |
+
sample_button1.click(handle_query, [sample_button1, chatbot], [chatbot])
|
1573 |
sample_button2.click(handle_query, [sample_button2, chatbot], [chatbot])
|
1574 |
sample_button3.click(handle_query, [sample_button3, chatbot], [chatbot])
|
1575 |
sample_button4.click(handle_query, [sample_button4, chatbot], [chatbot])
|