Spaces:
Runtime error
Runtime error
fix: input and output as textbox_whoareu
Browse files
app.py
CHANGED
@@ -1092,7 +1092,7 @@ def save_whotheyare(x):
|
|
1092 |
else:
|
1093 |
USERNAME = ""
|
1094 |
NAME = x
|
1095 |
-
|
1096 |
# def hello(profile: gr.OAuthProfile | None) -> str:
|
1097 |
# global USERNAME
|
1098 |
# global NAME
|
@@ -1119,8 +1119,9 @@ with gr.Blocks(css=CSS) as demo:
|
|
1119 |
with gr.Column(css="""textarea {direction: ltl}
|
1120 |
p {direction: ltl}"""):
|
1121 |
textbox_whoareu.render()
|
1122 |
-
textbox_whoareu.change(fn=save_whotheyare,
|
1123 |
-
|
|
|
1124 |
# gr.Markdown().attach_load_event(hello, None)
|
1125 |
# with gr.Row():
|
1126 |
# with gr.Column():
|
|
|
1092 |
else:
|
1093 |
USERNAME = ""
|
1094 |
NAME = x
|
1095 |
+
return USERNAME
|
1096 |
# def hello(profile: gr.OAuthProfile | None) -> str:
|
1097 |
# global USERNAME
|
1098 |
# global NAME
|
|
|
1119 |
with gr.Column(css="""textarea {direction: ltl}
|
1120 |
p {direction: ltl}"""):
|
1121 |
textbox_whoareu.render()
|
1122 |
+
textbox_whoareu.change(fn=save_whotheyare,
|
1123 |
+
inputs=textbox_whoareu,
|
1124 |
+
outputs=textbox_whoareu)
|
1125 |
# gr.Markdown().attach_load_event(hello, None)
|
1126 |
# with gr.Row():
|
1127 |
# with gr.Column():
|