Spaces:
Runtime error
Runtime error
Remove unused function
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
from functions import extract_text, summarize_text, generate_question, get_answer_context, answer_question
|
4 |
|
5 |
|
6 |
def update(name='default text'):
|
@@ -18,8 +18,6 @@ with gr.Blocks() as demo:
|
|
18 |
show_label=False)
|
19 |
btn_extract_text = gr.Button("Extraer texto")
|
20 |
out_url_text = gr.Textbox(label="Texto extraído")
|
21 |
-
out_url_text.change(fn=store_text_changes,
|
22 |
-
show_progress=False, status_tracker=None)
|
23 |
btn_extract_text.click(
|
24 |
fn=extract_text, inputs=inp_url, outputs=out_url_text)
|
25 |
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
from functions import extract_text, summarize_text, generate_question, get_answer_context, answer_question
|
4 |
|
5 |
|
6 |
def update(name='default text'):
|
|
|
18 |
show_label=False)
|
19 |
btn_extract_text = gr.Button("Extraer texto")
|
20 |
out_url_text = gr.Textbox(label="Texto extraído")
|
|
|
|
|
21 |
btn_extract_text.click(
|
22 |
fn=extract_text, inputs=inp_url, outputs=out_url_text)
|
23 |
|