Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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 |
-
|
| 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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|