Spaces:
Sleeping
Sleeping
Charge tokens at init
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ with gr.Blocks(theme=gr.themes.Base(), css="footer {visibility: hidden}") as mai
|
|
133 |
|
134 |
with gr.Row():
|
135 |
gr.Label(visible=True, scale=5)
|
136 |
-
lbl_credits = gr.Label(label="Credits Available", value=
|
137 |
lbl_console.change(fn=display_tokens, outputs=lbl_credits)
|
138 |
|
139 |
|
|
|
133 |
|
134 |
with gr.Row():
|
135 |
gr.Label(visible=True, scale=5)
|
136 |
+
lbl_credits = gr.Label(label="Credits Available", value=gr.State.tokens, scale=1)
|
137 |
lbl_console.change(fn=display_tokens, outputs=lbl_credits)
|
138 |
|
139 |
|