Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,18 +97,18 @@ with gr.Blocks() as demo:
|
|
| 97 |
def render_count(count):
|
| 98 |
name = gr.Textbox(
|
| 99 |
lines=1,
|
| 100 |
-
placeholder=
|
| 101 |
-
label=
|
| 102 |
)
|
| 103 |
data_type = gr.Textbox(
|
| 104 |
lines=1,
|
| 105 |
-
placeholder=
|
| 106 |
-
label=
|
| 107 |
)
|
| 108 |
desc = gr.Textbox(
|
| 109 |
lines=1,
|
| 110 |
-
placeholder=
|
| 111 |
-
label=
|
| 112 |
)
|
| 113 |
|
| 114 |
update_json_button.click(update_json, inputs=[json_display, name, data_type, desc], outputs=json_display)
|
|
@@ -133,12 +133,12 @@ with gr.Blocks() as demo:
|
|
| 133 |
# add_resume_btn = gr.Button("➕ Add Another Category")
|
| 134 |
# add_resume_btn.click(lambda x: x + 1, resume_count, resume_count)
|
| 135 |
|
| 136 |
-
update_json_button = gr.Button("
|
| 137 |
|
| 138 |
category_delete = gr.Textbox(
|
| 139 |
lines=1,
|
| 140 |
-
placeholder=
|
| 141 |
-
label=
|
| 142 |
)
|
| 143 |
|
| 144 |
delete_json_button = gr.Button("Delete Category")
|
|
@@ -157,7 +157,7 @@ with gr.Blocks() as demo:
|
|
| 157 |
)
|
| 158 |
file_upload.change(fn=toggle_textbox, inputs=file_upload, outputs=job_description)
|
| 159 |
output = gr.Textbox(
|
| 160 |
-
lines=
|
| 161 |
label="Parsing Result",
|
| 162 |
interactive=False
|
| 163 |
)
|
|
|
|
| 97 |
def render_count(count):
|
| 98 |
name = gr.Textbox(
|
| 99 |
lines=1,
|
| 100 |
+
placeholder="Category name",
|
| 101 |
+
label="Name"
|
| 102 |
)
|
| 103 |
data_type = gr.Textbox(
|
| 104 |
lines=1,
|
| 105 |
+
placeholder="Category data type",
|
| 106 |
+
label="Data Type"
|
| 107 |
)
|
| 108 |
desc = gr.Textbox(
|
| 109 |
lines=1,
|
| 110 |
+
placeholder="Category description",
|
| 111 |
+
label="Description"
|
| 112 |
)
|
| 113 |
|
| 114 |
update_json_button.click(update_json, inputs=[json_display, name, data_type, desc], outputs=json_display)
|
|
|
|
| 133 |
# add_resume_btn = gr.Button("➕ Add Another Category")
|
| 134 |
# add_resume_btn.click(lambda x: x + 1, resume_count, resume_count)
|
| 135 |
|
| 136 |
+
update_json_button = gr.Button("Add Category")
|
| 137 |
|
| 138 |
category_delete = gr.Textbox(
|
| 139 |
lines=1,
|
| 140 |
+
placeholder="Category Name",
|
| 141 |
+
label="Remove Category By Name"
|
| 142 |
)
|
| 143 |
|
| 144 |
delete_json_button = gr.Button("Delete Category")
|
|
|
|
| 157 |
)
|
| 158 |
file_upload.change(fn=toggle_textbox, inputs=file_upload, outputs=job_description)
|
| 159 |
output = gr.Textbox(
|
| 160 |
+
lines=6,
|
| 161 |
label="Parsing Result",
|
| 162 |
interactive=False
|
| 163 |
)
|