HuzaifaTech commited on
Commit
d44db5a
·
verified ·
1 Parent(s): 9c5aceb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -122,7 +122,7 @@ Question:
122
  def chat(message, history):
123
  return generate_answer(message)
124
 
125
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
126
  gr.Markdown("# 📚 RAG Chatbot (ML Book)")
127
  gr.Markdown("Ask questions from *Hands-On Machine Learning* PDF")
128
 
@@ -132,4 +132,5 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
132
  textbox=gr.Textbox(placeholder="Ask a question...", container=False),
133
  )
134
 
135
- demo.launch()
 
 
122
  def chat(message, history):
123
  return generate_answer(message)
124
 
125
+ with gr.Blocks() as demo:
126
  gr.Markdown("# 📚 RAG Chatbot (ML Book)")
127
  gr.Markdown("Ask questions from *Hands-On Machine Learning* PDF")
128
 
 
132
  textbox=gr.Textbox(placeholder="Ask a question...", container=False),
133
  )
134
 
135
+ demo.launch(theme=gr.themes.Soft())
136
+