Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -579,10 +579,14 @@ def save_csv_v3(df, df2):
|
|
| 579 |
|
| 580 |
gr.set_static_paths(["temp/"])
|
| 581 |
with gr.Blocks(title="Requirements Gathering Chatbot") as demo:
|
| 582 |
-
gr.Markdown("# Requirements Gathering Assistant")
|
| 583 |
-
gr.Markdown("This chatbot will help gather detailed requirements for your project.")
|
| 584 |
|
|
|
|
| 585 |
with gr.Tab(label= "Main"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 586 |
with gr.Row():
|
| 587 |
start_btn = gr.Button("Start New Session")
|
| 588 |
clear_btn = gr.Button("Clear")
|
|
@@ -596,7 +600,9 @@ with gr.Blocks(title="Requirements Gathering Chatbot") as demo:
|
|
| 596 |
submit_btn = gr.Button("Submit")
|
| 597 |
|
| 598 |
with gr.Tab(label= "Quotation Generator V1"):
|
|
|
|
| 599 |
with gr.Row():
|
|
|
|
| 600 |
# current_question = gr.Textbox(label="Edit Area", lines= 15)
|
| 601 |
# score_display = gr.Textbox(label="Progress", interactive=False)
|
| 602 |
with gr.Column(scale = 4):
|
|
@@ -670,6 +676,10 @@ with gr.Blocks(title="Requirements Gathering Chatbot") as demo:
|
|
| 670 |
|
| 671 |
# Replace single textbox with separate components
|
| 672 |
with gr.Tab(label= "Project Status"):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 673 |
with gr.Row():
|
| 674 |
session_input = gr.Number(label="Session ID", precision=0)
|
| 675 |
message_box = gr.Textbox(label="Message", interactive=False)
|
|
|
|
| 579 |
|
| 580 |
gr.set_static_paths(["temp/"])
|
| 581 |
with gr.Blocks(title="Requirements Gathering Chatbot") as demo:
|
|
|
|
|
|
|
| 582 |
|
| 583 |
+
gr.Markdown("# Requirements Gathering Chatbot")
|
| 584 |
with gr.Tab(label= "Main"):
|
| 585 |
+
gr.Markdown("### Instructions for Use - 2 options :")
|
| 586 |
+
gr.Markdown("1. **Start a New Session**: Begin answering questions for a new project. Please make sure to include the original questions in your replies.")
|
| 587 |
+
gr.Markdown("2. **Load an Existing Project**: Go to the **Project Status** tab. Select a session using its **Session ID** (e.g. id: 7) to review previous details.")
|
| 588 |
+
gr.Markdown("**Current Limitation**: Cannot add new answers to exisiting session")
|
| 589 |
+
|
| 590 |
with gr.Row():
|
| 591 |
start_btn = gr.Button("Start New Session")
|
| 592 |
clear_btn = gr.Button("Clear")
|
|
|
|
| 600 |
submit_btn = gr.Button("Submit")
|
| 601 |
|
| 602 |
with gr.Tab(label= "Quotation Generator V1"):
|
| 603 |
+
gr.Markdown("## Quotation 1 - Generate a Quotation")
|
| 604 |
with gr.Row():
|
| 605 |
+
|
| 606 |
# current_question = gr.Textbox(label="Edit Area", lines= 15)
|
| 607 |
# score_display = gr.Textbox(label="Progress", interactive=False)
|
| 608 |
with gr.Column(scale = 4):
|
|
|
|
| 676 |
|
| 677 |
# Replace single textbox with separate components
|
| 678 |
with gr.Tab(label= "Project Status"):
|
| 679 |
+
gr.Markdown("### Past submissions")
|
| 680 |
+
gr.Markdown("Quick hack to load past submissions to regenarate quotations (This page displays Q&A only; previous quotations are not shown yet).")
|
| 681 |
+
gr.Markdown("Use Session ID 7 for test")
|
| 682 |
+
|
| 683 |
with gr.Row():
|
| 684 |
session_input = gr.Number(label="Session ID", precision=0)
|
| 685 |
message_box = gr.Textbox(label="Message", interactive=False)
|