Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,7 +122,7 @@ Question:
|
|
| 122 |
def chat(message, history):
|
| 123 |
return generate_answer(message)
|
| 124 |
|
| 125 |
-
with gr.Blocks(
|
| 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 |
+
|