Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -326,14 +326,10 @@ with gr.Blocks(css=css) as demo:
|
|
| 326 |
out = gr.HTML(label="Compliance Result")
|
| 327 |
#out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 328 |
run_btn.click(check_compliance, inputs=inp, outputs=out)
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
</div>"""
|
| 334 |
-
)
|
| 335 |
-
with gr.TabItem("ChatBot-NRL manual-goods"):
|
| 336 |
-
gr.Markdown("# RAG Chatbot")
|
| 337 |
chatbot = gr.Chatbot(height=500) # Defaults to messages
|
| 338 |
msg = gr.Textbox(placeholder="Ask a question...", label="Query")
|
| 339 |
submit_btn = gr.Button("Submit")
|
|
@@ -341,4 +337,22 @@ with gr.Blocks(css=css) as demo:
|
|
| 341 |
# Events
|
| 342 |
submit_btn.click(respond, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
| 343 |
msg.submit(respond, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 344 |
demo.queue().launch()
|
|
|
|
| 326 |
out = gr.HTML(label="Compliance Result")
|
| 327 |
#out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 328 |
run_btn.click(check_compliance, inputs=inp, outputs=out)
|
| 329 |
+
|
| 330 |
+
with gr.TabItem("NRL ChatBot"):
|
| 331 |
+
gr.Markdown("""# RAG Chatbot - Ask question and answer will be generated by AI from Only MANUAL FOR PROCUREMENT OF
|
| 332 |
+
GOODS - NRL revised on 16.03.23""")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
chatbot = gr.Chatbot(height=500) # Defaults to messages
|
| 334 |
msg = gr.Textbox(placeholder="Ask a question...", label="Query")
|
| 335 |
submit_btn = gr.Button("Submit")
|
|
|
|
| 337 |
# Events
|
| 338 |
submit_btn.click(respond, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
| 339 |
msg.submit(respond, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
| 340 |
+
with gr.TabItem("Compliance Check of user technical doc"):
|
| 341 |
+
gr.HTML("""
|
| 342 |
+
<div style="color: white; background: black; padding: 20px; text-align: center; font-size: 24px;">
|
| 343 |
+
🚧 Coming Soon 🚧
|
| 344 |
+
</div>"""
|
| 345 |
+
)
|
| 346 |
+
with gr.TabItem("Compliance Check of ATC"):
|
| 347 |
+
gr.HTML("""
|
| 348 |
+
<div style="color: white; background: black; padding: 20px; text-align: center; font-size: 24px;">
|
| 349 |
+
🚧 Coming Soon 🚧
|
| 350 |
+
</div>"""
|
| 351 |
+
)
|
| 352 |
+
with gr.TabItem("Compliance Check of Draft GeM Tender"):
|
| 353 |
+
gr.HTML("""
|
| 354 |
+
<div style="color: white; background: black; padding: 20px; text-align: center; font-size: 24px;">
|
| 355 |
+
🚧 Coming Soon 🚧
|
| 356 |
+
</div>"""
|
| 357 |
+
)
|
| 358 |
demo.queue().launch()
|