Spaces:
Sleeping
Sleeping
Moibe
commited on
Commit
·
84a7ebd
1
Parent(s):
a107ccd
block.load test banner
Browse files
app.py
CHANGED
@@ -72,6 +72,9 @@ get_local_storage = """
|
|
72 |
}
|
73 |
"""
|
74 |
|
|
|
|
|
|
|
75 |
def predict(text_input, tokens_label):
|
76 |
|
77 |
tokens_texto = int(tokens_label) - 1
|
@@ -107,7 +110,7 @@ with gr.Blocks() as block:
|
|
107 |
|
108 |
|
109 |
block.load(
|
110 |
-
|
111 |
inputs=None,
|
112 |
outputs=[tokens_label],
|
113 |
_js=get_local_storage,
|
|
|
72 |
}
|
73 |
"""
|
74 |
|
75 |
+
def banner():
|
76 |
+
print("Esto es un BANNER.")
|
77 |
+
|
78 |
def predict(text_input, tokens_label):
|
79 |
|
80 |
tokens_texto = int(tokens_label) - 1
|
|
|
110 |
|
111 |
|
112 |
block.load(
|
113 |
+
fn=banner,
|
114 |
inputs=None,
|
115 |
outputs=[tokens_label],
|
116 |
_js=get_local_storage,
|