Spaces:
Sleeping
Sleeping
fix
Browse files- app.py +2 -1
- prompts.py +2 -2
app.py
CHANGED
@@ -139,7 +139,8 @@ with gr.Blocks(title="Text Classification System") as demo:
|
|
139 |
excel_download = gr.File(label="Download Excel", visible=False)
|
140 |
with gr.Column():
|
141 |
validation_output = gr.Textbox(
|
142 |
-
label="Validation Report", interactive=
|
|
|
143 |
)
|
144 |
improve_button = gr.Button(
|
145 |
"Improve Classification with Report", visible=False
|
|
|
139 |
excel_download = gr.File(label="Download Excel", visible=False)
|
140 |
with gr.Column():
|
141 |
validation_output = gr.Textbox(
|
142 |
+
label="Validation Report", interactive=True,
|
143 |
+
lines=15
|
144 |
)
|
145 |
improve_button = gr.Button(
|
146 |
"Improve Classification with Report", visible=False
|
prompts.py
CHANGED
@@ -29,7 +29,7 @@ Based on these example texts and the existing categories ({existing_categories})
|
|
29 |
suggest one additional appropriate category for classification.
|
30 |
|
31 |
Example texts:
|
32 |
-
{}
|
33 |
|
34 |
Return only the suggested category name, nothing else.
|
35 |
"""
|
@@ -57,7 +57,7 @@ suggest new categories that would improve the classification. The validation rep
|
|
57 |
{analysis}
|
58 |
|
59 |
Example texts:
|
60 |
-
{}
|
61 |
|
62 |
Return your answer as a comma-separated list of new category names only.
|
63 |
"""
|
|
|
29 |
suggest one additional appropriate category for classification.
|
30 |
|
31 |
Example texts:
|
32 |
+
{sample_texts}
|
33 |
|
34 |
Return only the suggested category name, nothing else.
|
35 |
"""
|
|
|
57 |
{analysis}
|
58 |
|
59 |
Example texts:
|
60 |
+
{sample_texts}
|
61 |
|
62 |
Return your answer as a comma-separated list of new category names only.
|
63 |
"""
|