Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,5 +17,11 @@ def classify(text, model_name):
|
|
17 |
else:
|
18 |
return 'False'
|
19 |
|
20 |
-
iface = gr.Interface(fn=classify,
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
iface.launch()
|
|
|
17 |
else:
|
18 |
return 'False'
|
19 |
|
20 |
+
iface = gr.Interface(fn=classify,
|
21 |
+
inputs=["text", gr.inputs.Dropdown(model_names, label='class')],
|
22 |
+
outputs="text",
|
23 |
+
title='STACC',
|
24 |
+
description='''# STACC: Sentence-Transformers Assisted code Comment Classifiers
|
25 |
+
|
26 |
+
This app showcases STACC, a collection of SetFit-based Comment classifiers, which were created for the [NLBSE-2023 tool competition](https://nlbse2023.github.io/tools/). More details on the tool itself can be found in the [GitHub repo](https://github.com/AISE-TUDelft/STACC) ''')
|
27 |
iface.launch()
|