celsowm commited on
Commit
1340b4d
1 Parent(s): 56a9fd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -12
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
- 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
-
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()