Spaces:
Sleeping
Sleeping
Update app.py
Browse filesRemoving explain box
app.py
CHANGED
|
@@ -472,23 +472,5 @@ document.addEventListener("mouseup", () => {
|
|
| 472 |
outputs=content_display
|
| 473 |
)
|
| 474 |
|
| 475 |
-
# ---- Selected text ----
|
| 476 |
-
selected_text = gr.Textbox(
|
| 477 |
-
label="Selected text",
|
| 478 |
-
placeholder="Highlight text above...",
|
| 479 |
-
lines=3,
|
| 480 |
-
interactive=True
|
| 481 |
-
)
|
| 482 |
-
|
| 483 |
-
# ---- Explain button ----
|
| 484 |
-
explain_btn = gr.Button("Explain selection 🧠")
|
| 485 |
-
|
| 486 |
-
output = gr.Markdown()
|
| 487 |
-
|
| 488 |
-
explain_btn.click(
|
| 489 |
-
fn=explain_text,
|
| 490 |
-
inputs=selected_text,
|
| 491 |
-
outputs=output,
|
| 492 |
-
)
|
| 493 |
|
| 494 |
demo.launch(allowed_paths=["."])
|
|
|
|
| 472 |
outputs=content_display
|
| 473 |
)
|
| 474 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 475 |
|
| 476 |
demo.launch(allowed_paths=["."])
|