crrodrvi commited on
Commit
1ac9ad7
verified
1 Parent(s): c44ec05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from transformers import AutoTokenizer, AutoModelWithLMHead, AutoModelForSeq2SeqLM
3
 
4
- # title = "Spanish Text Simplification"
5
  description = "Simplificaci贸n de noticias en espa帽ol"
6
  examples = [
7
  ["""
@@ -22,7 +22,12 @@ Ya el mi茅rcoles, habr谩 una bajada de temperaturas m谩s generalizada
22
  ]
23
 
24
  # Cargar los modelos desde Hugging Face
25
- demo = gr.Interface.load("huggingface/crrodrvi/mbart-simplificacion", description=description, examples=examples)
 
 
 
 
 
26
  #io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
27
 
28
  # Lanzar la aplicaci贸n
 
1
  import gradio as gr
2
  from transformers import AutoTokenizer, AutoModelWithLMHead, AutoModelForSeq2SeqLM
3
 
4
+ title = "Spanish Text Simplification"
5
  description = "Simplificaci贸n de noticias en espa帽ol"
6
  examples = [
7
  ["""
 
22
  ]
23
 
24
  # Cargar los modelos desde Hugging Face
25
+ demo = gr.Interface.load("huggingface/crrodrvi/mbart-simplificacion",
26
+ theme='huggingface',
27
+ inputs = gr.inputs.Textbox(lines = 10, label="Text")
28
+ title = title,
29
+ description=description,
30
+ examples=examples)
31
  #io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
32
 
33
  # Lanzar la aplicaci贸n