thugCodeNinja commited on
Commit
207bc33
·
verified ·
1 Parent(s): 8581164

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ def process_text(input_text, input_file):
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.
63
  The probability is particularly explained by the attention plots through SHAP'''
 
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.Dataframe(label="Similar Articles", headers=["Title", "Link"],row_count=5)]
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.
63
  The probability is particularly explained by the attention plots through SHAP'''