Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,15 +4,7 @@ import gradio as gr
|
|
| 4 |
model_flax = FlaxT5ForConditionalGeneration.from_pretrained("thegoodfellas/tgf-flan-t5-base-ptbr")
|
| 5 |
|
| 6 |
def summarize(text):
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 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 |
-
|
| 18 |
-
demo.launch()
|
|
|
|
| 4 |
model_flax = FlaxT5ForConditionalGeneration.from_pretrained("thegoodfellas/tgf-flan-t5-base-ptbr")
|
| 5 |
|
| 6 |
def summarize(text):
|
| 7 |
+
return f"{text} !"
|
| 8 |
+
|
| 9 |
+
iface = gr.Interface(fn=summarize, inputs="text", outputs="text")
|
| 10 |
+
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|