Spaces:
Sleeping
Sleeping
Update app.py
Browse filesRemoving Box to explain
app.py
CHANGED
|
@@ -606,23 +606,4 @@ document.addEventListener("mouseup", () => {
|
|
| 606 |
outputs=content_display
|
| 607 |
)
|
| 608 |
|
| 609 |
-
# ---- Selected text ----
|
| 610 |
-
selected_text = gr.Textbox(
|
| 611 |
-
label="Selected text",
|
| 612 |
-
placeholder="Highlight text above...",
|
| 613 |
-
lines=3,
|
| 614 |
-
interactive=True
|
| 615 |
-
)
|
| 616 |
-
|
| 617 |
-
# ---- Explain button ----
|
| 618 |
-
explain_btn = gr.Button("Explain selection 🧠")
|
| 619 |
-
|
| 620 |
-
output = gr.Markdown()
|
| 621 |
-
|
| 622 |
-
explain_btn.click(
|
| 623 |
-
fn=explain_text,
|
| 624 |
-
inputs=selected_text,
|
| 625 |
-
outputs=output,
|
| 626 |
-
)
|
| 627 |
-
|
| 628 |
demo.launch(allowed_paths=["."])
|
|
|
|
| 606 |
outputs=content_display
|
| 607 |
)
|
| 608 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 609 |
demo.launch(allowed_paths=["."])
|