TheHickman commited on
Commit
7240349
·
verified ·
1 Parent(s): c3881e4

Update app.py

Browse files

Removing Box to explain

Files changed (1) hide show
  1. app.py +0 -19
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=["."])