jonathanjordan21 commited on
Commit
b73a118
·
verified ·
1 Parent(s): ef44a19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
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=f"Category name",
101
- label=f"Name"
102
  )
103
  data_type = gr.Textbox(
104
  lines=1,
105
- placeholder=f"Category data type",
106
- label=f"Data Type"
107
  )
108
  desc = gr.Textbox(
109
  lines=1,
110
- placeholder=f"Category description",
111
- label=f"Description"
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("Update Parsing Categories")
137
 
138
  category_delete = gr.Textbox(
139
  lines=1,
140
- placeholder=f"Category Name",
141
- label=f"Remove Category Based on It's Name"
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=8,
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
  )