Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -623,14 +623,25 @@ with gr.Blocks(css=css, title="Document Intelligence — Jason Kishore") as demo
|
|
| 623 |
height=440,
|
| 624 |
show_label=False,
|
| 625 |
elem_classes=["chatbot-wrap"],
|
| 626 |
-
|
| 627 |
-
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
)
|
| 632 |
)
|
| 633 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 634 |
msg_box = gr.Textbox(
|
| 635 |
placeholder="Ask a question about your document…",
|
| 636 |
label="Query",
|
|
|
|
| 623 |
height=440,
|
| 624 |
show_label=False,
|
| 625 |
elem_classes=["chatbot-wrap"],
|
| 626 |
+
type="messages", # Already recommended earlier — ensures dict format
|
| 627 |
+
render_markdown=False, # ← Disable Markdown if you don't need bold/italics/links
|
| 628 |
+
line_breaks=False, # ← Prevents GitHub-style single-\n breaks
|
| 629 |
+
bubble_full_width=False, # Optional: was removed in Gradio 6, but set if using older version
|
| 630 |
+
placeholder=...
|
|
|
|
| 631 |
)
|
| 632 |
|
| 633 |
+
# chatbot = gr.Chatbot(
|
| 634 |
+
# height=440,
|
| 635 |
+
# show_label=False,
|
| 636 |
+
# elem_classes=["chatbot-wrap"],
|
| 637 |
+
# placeholder=(
|
| 638 |
+
# "<div style='font-family:DM Mono,monospace;font-size:0.62rem;"
|
| 639 |
+
# "color:#3e3e48;text-align:center;padding:80px 0;"
|
| 640 |
+
# "letter-spacing:0.14em;text-transform:uppercase;line-height:2'>"
|
| 641 |
+
# "Index a document in the Upload tab<br>to begin your session</div>"
|
| 642 |
+
# )
|
| 643 |
+
# )
|
| 644 |
+
|
| 645 |
msg_box = gr.Textbox(
|
| 646 |
placeholder="Ask a question about your document…",
|
| 647 |
label="Query",
|