MYox commited on
Commit
50828c8
·
1 Parent(s): e30868a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import os
6
 
7
  download('punkt')
8
 
9
- inf_model = SetFitModel.from_pretrained("MYox/NSS_model")
10
 
11
  features = (['Teaching & learning', 'Support', 'Communication', 'Organisation & timetable',
12
  'Assessment & feedback', 'Career & placement', 'Health, well-being & social life', 'Facilities & technology'])
@@ -28,7 +28,8 @@ def get_comment_topics_old(comment):
28
  return ', '.join(output)
29
 
30
  app = gr.Interface(
31
- fn = get_comment_topics_old,
 
32
  inputs=gr.Textbox(lines=4, placeholder='Type comment here or choose example, below', label='Comment'),
33
  outputs=gr.Textbox(lines=4, label='Generated Topics'),
34
  allow_flagging='never',
 
6
 
7
  download('punkt')
8
 
9
+ inf_model = SetFitModel.from_pretrained("MYox/NSS_multi-label_8_sent_v3_1")
10
 
11
  features = (['Teaching & learning', 'Support', 'Communication', 'Organisation & timetable',
12
  'Assessment & feedback', 'Career & placement', 'Health, well-being & social life', 'Facilities & technology'])
 
28
  return ', '.join(output)
29
 
30
  app = gr.Interface(
31
+ title="NSS Topic Generator"
32
+ fn=get_comment_topics_old,
33
  inputs=gr.Textbox(lines=4, placeholder='Type comment here or choose example, below', label='Comment'),
34
  outputs=gr.Textbox(lines=4, label='Generated Topics'),
35
  allow_flagging='never',