paquinon commited on
Commit
d3e13fc
·
verified ·
1 Parent(s): 7bc13e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -2,9 +2,7 @@ from huggingface_hub import from_pretrained_fastai
2
  import gradio as gr
3
  from fastai.text.all import *
4
 
5
-
6
- # Carga el learner desde HuggingFace
7
- learner = from_pretrained_fastai("paquinon/entregable3")
8
 
9
  learner = from_pretrained_fastai(repo_id)
10
  labels = learner.dls.vocab
@@ -17,6 +15,6 @@ gr.Interface(
17
  fn=predict,
18
  inputs=gr.Textbox(lines=4, placeholder="Escribe el texto aquí..."),
19
  outputs=gr.Label(num_top_classes=len(labels)),
20
- title="Clasificador de opniones de peliculas",
21
  description="Introduce un texto para predecir su opinion."
22
  ).launch(share=False)
 
2
  import gradio as gr
3
  from fastai.text.all import *
4
 
5
+ repo_id = "paquinon/entregable3"
 
 
6
 
7
  learner = from_pretrained_fastai(repo_id)
8
  labels = learner.dls.vocab
 
15
  fn=predict,
16
  inputs=gr.Textbox(lines=4, placeholder="Escribe el texto aquí..."),
17
  outputs=gr.Label(num_top_classes=len(labels)),
18
+ title="Clasificador de opiniones sobre peliculas",
19
  description="Introduce un texto para predecir su opinion."
20
  ).launch(share=False)