Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -3,12 +3,15 @@ import gradio as gr
|
|
3 |
|
4 |
model_flax = FlaxT5ForConditionalGeneration.from_pretrained("thegoodfellas/tgf-flan-t5-base-ptbr")
|
5 |
|
6 |
-
|
|
|
|
|
|
|
7 |
inputs=[
|
8 |
gr.inputs.Textbox(lines=20, label="Text"),
|
9 |
],
|
10 |
outputs=gr.outputs.Textbox(label="Summary"),
|
11 |
-
title="T5 Summarization",
|
12 |
description="Summarize text using T5 model",
|
13 |
)
|
14 |
|
|
|
3 |
|
4 |
model_flax = FlaxT5ForConditionalGeneration.from_pretrained("thegoodfellas/tgf-flan-t5-base-ptbr")
|
5 |
|
6 |
+
def summarize():
|
7 |
+
pass
|
8 |
+
|
9 |
+
demo = gr.Interface(fn=summarize,
|
10 |
inputs=[
|
11 |
gr.inputs.Textbox(lines=20, label="Text"),
|
12 |
],
|
13 |
outputs=gr.outputs.Textbox(label="Summary"),
|
14 |
+
title="Flan T5 Summarization",
|
15 |
description="Summarize text using T5 model",
|
16 |
)
|
17 |
|