juanesvelez commited on
Commit
98c78fa
·
verified ·
1 Parent(s): 62830a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -22,7 +22,7 @@ def Page():
22
 
23
  cell_actions = [solara.CellAction(icon="mdi-thumb-up", name="Seleccionar", on_click=on_action_cell)]
24
 
25
- solara.InputText("Ingrese texto:", value=text, continuous_update=True, on_change=lambda v: text.set(v))
26
 
27
  if text.value != "":
28
  tokens = tokenizer.encode(text.value, return_tensors="pt")
@@ -39,9 +39,4 @@ def Page():
39
  solara.Markdown("### Predicción")
40
  solara.DataFrame(df, items_per_page=10, cell_actions=cell_actions)
41
 
42
- # Ejecutar la aplicación
43
- @solara.component
44
- def App():
45
- Page()
46
-
47
- App()
 
22
 
23
  cell_actions = [solara.CellAction(icon="mdi-thumb-up", name="Seleccionar", on_click=on_action_cell)]
24
 
25
+ solara.InputText("Ingrese texto:", value=text, continuous_update=True)
26
 
27
  if text.value != "":
28
  tokens = tokenizer.encode(text.value, return_tensors="pt")
 
39
  solara.Markdown("### Predicción")
40
  solara.DataFrame(df, items_per_page=10, cell_actions=cell_actions)
41
 
42
+ Page()