PraneshJs commited on
Commit
a8404b2
·
verified ·
1 Parent(s): 63041f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -409,7 +409,7 @@ with gr.Blocks(title="AI Ally (Gradio) — Crawl4AI + OpenRouter + FAISS") as de
409
 
410
  gr.Markdown("### Ask about the indexed documents")
411
  q = gr.Textbox(label="Question", lines=5)
412
- #sys_prompt = gr.Textbox(label="Optional System Prompt (sent to LLM)", lines=5, value="You are a helpful assistant.")
413
  ask_btn = gr.Button("Ask")
414
  answer_out = gr.Textbox(label="Answer JSON", interactive=False, lines=15)
415
  ask_btn.click(ask_question, inputs=[q, sys_prompt], outputs=[answer_out])
@@ -425,7 +425,7 @@ with gr.Blocks(title="AI Ally (Gradio) — Crawl4AI + OpenRouter + FAISS") as de
425
 
426
  gr.Markdown("### Ask about the crawled site")
427
  q2 = gr.Textbox(label="Question", lines=5)
428
- #sys_prompt2 = gr.Textbox(label="Optional System Prompt (sent to LLM)", lines=10, value="You are a helpful assistant.")
429
  ask_btn2 = gr.Button("Ask site")
430
  answer_out2 = gr.Textbox(label="Answer JSON", interactive=False, lines=15)
431
  ask_btn2.click(ask_question, inputs=[q2, sys_prompt2], outputs=[answer_out2])
 
409
 
410
  gr.Markdown("### Ask about the indexed documents")
411
  q = gr.Textbox(label="Question", lines=5)
412
+ sys_prompt = gr.Textbox(label="Optional System Prompt (sent to LLM)", lines=5, value="You are a helpful assistant.")
413
  ask_btn = gr.Button("Ask")
414
  answer_out = gr.Textbox(label="Answer JSON", interactive=False, lines=15)
415
  ask_btn.click(ask_question, inputs=[q, sys_prompt], outputs=[answer_out])
 
425
 
426
  gr.Markdown("### Ask about the crawled site")
427
  q2 = gr.Textbox(label="Question", lines=5)
428
+ sys_prompt2 = gr.Textbox(label="Optional System Prompt (sent to LLM)", lines=10, value="You are a helpful assistant.")
429
  ask_btn2 = gr.Button("Ask site")
430
  answer_out2 = gr.Textbox(label="Answer JSON", interactive=False, lines=15)
431
  ask_btn2.click(ask_question, inputs=[q2, sys_prompt2], outputs=[answer_out2])