Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,8 +55,8 @@ def process_text(input_text, input_file):
|
|
55 |
|
56 |
return processed_result, prob, final_label, text_plot,similar_articles
|
57 |
|
58 |
-
text_input = gr.
|
59 |
-
file_input = gr.
|
60 |
outputs = [gr.Textbox(label="Processed text"), gr.Textbox(label="Probability"), gr.Textbox(label="Label"), gr.HTML(label="SHAP Plot"),gr.Table(label="Similar Articles", columns=["Title", "Link"])]
|
61 |
title = "Group 2- ChatGPT text detection module"
|
62 |
description = '''Please upload text files and text input responsibly and await the explainable results. The approach in place includes finetuning a Roberta model for text classification.Once the classifications are done the decision is exaplined thorugh the SHAP text plot.
|
|
|
55 |
|
56 |
return processed_result, prob, final_label, text_plot,similar_articles
|
57 |
|
58 |
+
text_input = gr.Textbox(label="Enter text")
|
59 |
+
file_input = gr.File(label="Upload a text file")
|
60 |
outputs = [gr.Textbox(label="Processed text"), gr.Textbox(label="Probability"), gr.Textbox(label="Label"), gr.HTML(label="SHAP Plot"),gr.Table(label="Similar Articles", columns=["Title", "Link"])]
|
61 |
title = "Group 2- ChatGPT text detection module"
|
62 |
description = '''Please upload text files and text input responsibly and await the explainable results. The approach in place includes finetuning a Roberta model for text classification.Once the classifications are done the decision is exaplined thorugh the SHAP text plot.
|