wuhp commited on
Commit
8c6dc90
·
verified ·
1 Parent(s): 5ab9dc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -429,7 +429,7 @@ with gr.Blocks() as demo:
429
  gr.Markdown("# QLoRA Fine-tuning & RAG-based Chat Demo using Custom R1 Model")
430
  gr.Markdown("---")
431
 
432
- gr.TabbedInterface( # <-- This should be inside `with gr.Blocks()`
433
  [
434
  gr.Interface(
435
  fn=finetune_small_subset,
@@ -473,10 +473,9 @@ with gr.Blocks() as demo:
473
  textbox=gr.Textbox(placeholder="Ask a question to the RAG Chatbot...", lines=2, show_label=False),
474
  title="💬 RAG Chat",
475
  description="Chat with the custom R1 model, enhanced with retrieval-augmented memory. The model retrieves relevant info for informed responses.",
476
- submit_button="➡️ Send",
477
- clear_btn=None
478
  )
479
  ]
480
- ) # <-- No `render()`, just close `gr.TabbedInterface()`
481
 
482
  demo.launch()
 
429
  gr.Markdown("# QLoRA Fine-tuning & RAG-based Chat Demo using Custom R1 Model")
430
  gr.Markdown("---")
431
 
432
+ gr.TabbedInterface(
433
  [
434
  gr.Interface(
435
  fn=finetune_small_subset,
 
473
  textbox=gr.Textbox(placeholder="Ask a question to the RAG Chatbot...", lines=2, show_label=False),
474
  title="💬 RAG Chat",
475
  description="Chat with the custom R1 model, enhanced with retrieval-augmented memory. The model retrieves relevant info for informed responses.",
476
+ clear_btn=None # Keep if needed, or remove entirely
 
477
  )
478
  ]
479
+ )
480
 
481
  demo.launch()