Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,9 @@ with gr.Blocks() as demo:
|
|
126 |
|
127 |
with gr.Tab("Classification by topic"):
|
128 |
gr.Markdown("### This section will categories each contribution in your own personalized categories")
|
129 |
-
|
|
|
|
|
130 |
gr.Markdown("### The predefined categories can be modified at any time")
|
131 |
df_category = gr.DataFrame(label='categories', value=df_cate, interactive=True)
|
132 |
btn_classif = gr.Button("Categorize")
|
|
|
126 |
|
127 |
with gr.Tab("Classification by topic"):
|
128 |
gr.Markdown("### This section will categories each contribution in your own personalized categories")
|
129 |
+
with gr.Row():
|
130 |
+
dd_source_class = gr.Dropdown(label="Source Column", multiselect=False, scale=7)
|
131 |
+
sl_treshold = gr.Slider(minimum=0, maximum=1, value=0.45, step=0.05, label='Similarity Treshold')
|
132 |
gr.Markdown("### The predefined categories can be modified at any time")
|
133 |
df_category = gr.DataFrame(label='categories', value=df_cate, interactive=True)
|
134 |
btn_classif = gr.Button("Categorize")
|