Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import os
|
|
| 6 |
|
| 7 |
download('punkt')
|
| 8 |
|
| 9 |
-
inf_model = SetFitModel.from_pretrained("MYox/
|
| 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 |
-
|
|
|
|
| 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',
|