Spaces:
Sleeping
Sleeping
apple muncy
commited on
Commit
·
70fc332
1
Parent(s):
309ccea
removing commas
Browse filesSigned-off-by: apple muncy <[email protected]>
app.py
CHANGED
@@ -81,7 +81,7 @@ RECOGNIZED_TAGS = {
|
|
81 |
"computer-vision",
|
82 |
"nlp",
|
83 |
"cv",
|
84 |
-
"multimodal"
|
85 |
}
|
86 |
|
87 |
|
@@ -396,7 +396,7 @@ Please process all {len(all_tags)} tags: {", ".join(all_tags)}
|
|
396 |
"original_comment": comment_content,
|
397 |
"comment_author": comment_author,
|
398 |
"detected_tags": all_tags,
|
399 |
-
"results": result_messages
|
400 |
}
|
401 |
|
402 |
tag_operations_store.append(interaction)
|
@@ -555,7 +555,7 @@ def create_dashboard():
|
|
555 |
gr.Textbox(
|
556 |
label="Text to extract tag from",
|
557 |
value=g_payload,
|
558 |
-
placeholder="payload"
|
559 |
)
|
560 |
|
561 |
with gr.Column():
|
@@ -567,13 +567,13 @@ def create_dashboard():
|
|
567 |
sim_title = gr.Textbox(
|
568 |
label="Discussion Title",
|
569 |
value="Add pytorch tag",
|
570 |
-
placeholder="Discussion title"
|
571 |
)
|
572 |
sim_comment = gr.Textbox(
|
573 |
label="Comment",
|
574 |
lines=3,
|
575 |
value="This model should have tags: pytorch, text-generation",
|
576 |
-
placeholder="Comment mentioning tags..."
|
577 |
)
|
578 |
sim_btn = gr.Button("🏷️ Test Tag Detection")
|
579 |
gr.Markdown(f"""
|
|
|
81 |
"computer-vision",
|
82 |
"nlp",
|
83 |
"cv",
|
84 |
+
"multimodal"
|
85 |
}
|
86 |
|
87 |
|
|
|
396 |
"original_comment": comment_content,
|
397 |
"comment_author": comment_author,
|
398 |
"detected_tags": all_tags,
|
399 |
+
"results": result_messages
|
400 |
}
|
401 |
|
402 |
tag_operations_store.append(interaction)
|
|
|
555 |
gr.Textbox(
|
556 |
label="Text to extract tag from",
|
557 |
value=g_payload,
|
558 |
+
placeholder="payload"
|
559 |
)
|
560 |
|
561 |
with gr.Column():
|
|
|
567 |
sim_title = gr.Textbox(
|
568 |
label="Discussion Title",
|
569 |
value="Add pytorch tag",
|
570 |
+
placeholder="Discussion title"
|
571 |
)
|
572 |
sim_comment = gr.Textbox(
|
573 |
label="Comment",
|
574 |
lines=3,
|
575 |
value="This model should have tags: pytorch, text-generation",
|
576 |
+
placeholder="Comment mentioning tags..."
|
577 |
)
|
578 |
sim_btn = gr.Button("🏷️ Test Tag Detection")
|
579 |
gr.Markdown(f"""
|