Spaces:
Running
Running
Commit
·
965f71d
1
Parent(s):
e062738
add user info testing feature
Browse files
app.py
CHANGED
@@ -112,5 +112,13 @@ with gr.Blocks(theme=seafoam, css=css) as demo:
|
|
112 |
with gr.Row():
|
113 |
f = gr.HTML(html, label="Achievement Log", elem_id="achievement_log")
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
if __name__ == "__main__":
|
116 |
demo.launch()
|
|
|
112 |
with gr.Row():
|
113 |
f = gr.HTML(html, label="Achievement Log", elem_id="achievement_log")
|
114 |
|
115 |
+
with gr.Row():
|
116 |
+
input = gr.Textbox(elem_id='user_id')
|
117 |
+
output = gr.Textbox()
|
118 |
+
|
119 |
+
def print_text():
|
120 |
+
return "Yes, babe!"
|
121 |
+
input.change(print_text, None, output)
|
122 |
+
|
123 |
if __name__ == "__main__":
|
124 |
demo.launch()
|
t.html
ADDED
File without changes
|