Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -501,7 +501,7 @@ def _handle_answer(user_msg: str, chat_history: list,
|
|
| 501 |
|
| 502 |
|
| 503 |
# ── build UI ─────────────────────────────────────────────────────────────────
|
| 504 |
-
with gr.Blocks(
|
| 505 |
|
| 506 |
gr.HTML("""
|
| 507 |
<div dir="rtl" style="text-align:center;padding:24px 0 8px;">
|
|
@@ -522,8 +522,7 @@ with gr.Blocks(css=CSS, title="Text2Receipt") as demo:
|
|
| 522 |
note_input = gr.Textbox(
|
| 523 |
label="הערת הכנסה (עברית חופשית)",
|
| 524 |
placeholder="לדוגמה: קיבלתי 1,200 ש\"ח ממשה כהן על ייעוץ עסקי",
|
| 525 |
-
lines=3,
|
| 526 |
-
)
|
| 527 |
with gr.Row():
|
| 528 |
submit_btn = gr.Button("⚡ הפק מסמך", variant="primary")
|
| 529 |
clear_btn = gr.Button("🗑 נקה")
|
|
@@ -537,16 +536,12 @@ with gr.Blocks(css=CSS, title="Text2Receipt") as demo:
|
|
| 537 |
|
| 538 |
with gr.Column(scale=3):
|
| 539 |
chatbot = gr.Chatbot(
|
| 540 |
-
label="סוכן הבהרה",
|
| 541 |
-
type="messages",
|
| 542 |
-
rtl=True,
|
| 543 |
-
height=220,
|
| 544 |
)
|
| 545 |
answer_input = gr.Textbox(
|
| 546 |
label="תשובה לשאלת הסוכן",
|
| 547 |
placeholder="הקלד תשובה ולחץ Enter...",
|
| 548 |
-
visible=True,
|
| 549 |
-
)
|
| 550 |
|
| 551 |
doc_output = gr.HTML(label="מסמך פיסקלי")
|
| 552 |
recs_output = gr.HTML(label="קבלות דומות")
|
|
@@ -577,4 +572,4 @@ with gr.Blocks(css=CSS, title="Text2Receipt") as demo:
|
|
| 577 |
)
|
| 578 |
|
| 579 |
if __name__ == "__main__":
|
| 580 |
-
demo.launch()
|
|
|
|
| 501 |
|
| 502 |
|
| 503 |
# ── build UI ─────────────────────────────────────────────────────────────────
|
| 504 |
+
with gr.Blocks(title="Text2Receipt") as demo:
|
| 505 |
|
| 506 |
gr.HTML("""
|
| 507 |
<div dir="rtl" style="text-align:center;padding:24px 0 8px;">
|
|
|
|
| 522 |
note_input = gr.Textbox(
|
| 523 |
label="הערת הכנסה (עברית חופשית)",
|
| 524 |
placeholder="לדוגמה: קיבלתי 1,200 ש\"ח ממשה כהן על ייעוץ עסקי",
|
| 525 |
+
lines=3, )
|
|
|
|
| 526 |
with gr.Row():
|
| 527 |
submit_btn = gr.Button("⚡ הפק מסמך", variant="primary")
|
| 528 |
clear_btn = gr.Button("🗑 נקה")
|
|
|
|
| 536 |
|
| 537 |
with gr.Column(scale=3):
|
| 538 |
chatbot = gr.Chatbot(
|
| 539 |
+
label="סוכן הבהרה", height=220,
|
|
|
|
|
|
|
|
|
|
| 540 |
)
|
| 541 |
answer_input = gr.Textbox(
|
| 542 |
label="תשובה לשאלת הסוכן",
|
| 543 |
placeholder="הקלד תשובה ולחץ Enter...",
|
| 544 |
+
visible=True, )
|
|
|
|
| 545 |
|
| 546 |
doc_output = gr.HTML(label="מסמך פיסקלי")
|
| 547 |
recs_output = gr.HTML(label="קבלות דומות")
|
|
|
|
| 572 |
)
|
| 573 |
|
| 574 |
if __name__ == "__main__":
|
| 575 |
+
demo.launch(css=CSS)
|