songyiliao CoinW commited on
Commit
f2be3fc
·
verified ·
1 Parent(s): 1b3f334

Upload 2 files (#3)

Browse files

- Upload 2 files (8da121cdf11a8fe7860ba96ff214a82502405616)


Co-authored-by: Coin W <CoinW@users.noreply.huggingface.co>

Files changed (2) hide show
  1. app.py +1 -4
  2. relative_tester.py +1 -1
app.py CHANGED
@@ -100,9 +100,6 @@ css = """
100
  color: #856404;
101
  border: 2px solid #ffc107;
102
  }
103
- #output-text textarea {
104
- font-family: 'Impact', sans-serif;
105
- }
106
  """
107
 
108
  # Gradio App
@@ -180,7 +177,7 @@ with gr.Blocks(css=css) as app:
180
  with gr.Accordion("Acknowledgement", open=True, elem_classes=["accordion"]):
181
  gr.Markdown(
182
  """
183
- We Thanks Jinqian Wang and Jerry Ye for their help in the development of this space.,
184
  """
185
  )
186
 
 
100
  color: #856404;
101
  border: 2px solid #ffc107;
102
  }
 
 
 
103
  """
104
 
105
  # Gradio App
 
177
  with gr.Accordion("Acknowledgement", open=True, elem_classes=["accordion"]):
178
  gr.Markdown(
179
  """
180
+ We Thanks Jinqian Wang and Jerry Ye for their help in the development of this space.
181
  """
182
  )
183
 
relative_tester.py CHANGED
@@ -30,7 +30,7 @@ class RelativeTester:
30
  feature_for_sents = self.feature_extractor.process_sents(sents, False)
31
  if len(feature_for_sents) <= 1:
32
  # print("DEBUG: tooshort")
33
- return "Too short to test! Please input more than 2 sentences."
34
  # Cutoff the features
35
  min_len = min(
36
  len(feature_for_sents),
 
30
  feature_for_sents = self.feature_extractor.process_sents(sents, False)
31
  if len(feature_for_sents) <= 1:
32
  # print("DEBUG: tooshort")
33
+ return "Too short to test! There are no 2 sentences identified in the input text."
34
  # Cutoff the features
35
  min_len = min(
36
  len(feature_for_sents),