abullard1 commited on
Commit
29b6159
1 Parent(s): 24bce51

Add labeling criteria

Browse files
Files changed (1) hide show
  1. app.py +25 -0
app.py CHANGED
@@ -69,6 +69,28 @@ article = (
69
  """
70
  )
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  # Main Gradio Interface using Gradio Blocks
73
  # Docs: https://www.gradio.app/docs/gradio/blocks
74
  with gr.Blocks() as steam_reviews_classifier_block:
@@ -112,6 +134,9 @@ with gr.Blocks() as steam_reviews_classifier_block:
112
  # Submit Button
113
  submit_button = gr.Button(value="Submit")
114
 
 
 
 
115
  # Function to run when the Submit Button is clicked (Passes the input text to the classifier and displays the output text)
116
  def on_submit_click(input_text):
117
  classification_result = classify_steam_review(input_text)
 
69
  """
70
  )
71
 
72
+ labeling_criteria = (
73
+ """
74
+ <br>
75
+ <hr style="width: 75%; margin-left: auto; margin-right: auto;">
76
+ <b><u>Labeling Criteria:</u></b>
77
+ <br>
78
+ <br>
79
+ <ul>
80
+ <li>
81
+ <b><span style="color:green;">Constructive</span></b>:
82
+ Reviews that provide <b>helpful feedback</b>, <b>suggestions for improvement</b>,
83
+ <b>constructive criticism</b>, or <b>detailed insights</b> into the game.
84
+ </li>
85
+ <li>
86
+ <b><span style="color:red;">Not Constructive</span></b>:
87
+ Reviews that <b>do not offer useful feedback</b>, <b>lack substance</b>,
88
+ are <b>vague</b>, <b>off-topic</b>, <b>irrelevant</b>, or <b>trolling</b>.
89
+ </li>
90
+ </ul>
91
+ """
92
+ )
93
+
94
  # Main Gradio Interface using Gradio Blocks
95
  # Docs: https://www.gradio.app/docs/gradio/blocks
96
  with gr.Blocks() as steam_reviews_classifier_block:
 
134
  # Submit Button
135
  submit_button = gr.Button(value="Submit")
136
 
137
+ # Labeling Criteria
138
+ gr.Markdown(labeling_criteria)
139
+
140
  # Function to run when the Submit Button is clicked (Passes the input text to the classifier and displays the output text)
141
  def on_submit_click(input_text):
142
  classification_result = classify_steam_review(input_text)