Commit
·
4c78041
1
Parent(s):
efc6d60
login button layout
Browse files
app_text_classification.py
CHANGED
@@ -33,11 +33,9 @@ logger = logging.getLogger(__name__)
|
|
33 |
def get_demo():
|
34 |
with gr.Row():
|
35 |
gr.Markdown(INTRODUCTION_MD)
|
|
|
36 |
gr.HTML(LOG_IN_TIPS)
|
37 |
gr.LoginButton()
|
38 |
-
uid_label = gr.Textbox(
|
39 |
-
label="Evaluation ID:", value=uuid.uuid4, visible=False, interactive=False
|
40 |
-
)
|
41 |
with gr.Row():
|
42 |
model_id_input = gr.Textbox(
|
43 |
label="Hugging Face Model id",
|
|
|
33 |
def get_demo():
|
34 |
with gr.Row():
|
35 |
gr.Markdown(INTRODUCTION_MD)
|
36 |
+
with gr.Accordion(label="Hugging Face Login", open=True):
|
37 |
gr.HTML(LOG_IN_TIPS)
|
38 |
gr.LoginButton()
|
|
|
|
|
|
|
39 |
with gr.Row():
|
40 |
model_id_input = gr.Textbox(
|
41 |
label="Hugging Face Model id",
|
text_classification_ui_helpers.py
CHANGED
@@ -416,8 +416,6 @@ def show_hf_token_info(token):
|
|
416 |
return gr.update(visible=False)
|
417 |
|
418 |
def try_submit(m_id, d_id, config, split, uid, profile: gr.OAuthProfile | None, oath_token: gr.OAuthToken | None):
|
419 |
-
print(oath_token.token)
|
420 |
-
print(".>>>>>>>>>>>>>>>>>>>>>>")
|
421 |
all_mappings = read_column_mapping(uid)
|
422 |
if not check_column_mapping_keys_validity(all_mappings):
|
423 |
return (gr.update(interactive=True), gr.update(visible=False))
|
|
|
416 |
return gr.update(visible=False)
|
417 |
|
418 |
def try_submit(m_id, d_id, config, split, uid, profile: gr.OAuthProfile | None, oath_token: gr.OAuthToken | None):
|
|
|
|
|
419 |
all_mappings = read_column_mapping(uid)
|
420 |
if not check_column_mapping_keys_validity(all_mappings):
|
421 |
return (gr.update(interactive=True), gr.update(visible=False))
|