Update app.py
Browse files
app.py
CHANGED
@@ -39,12 +39,12 @@ def classify_lyrics(lyric):
|
|
39 |
|
40 |
print(result, texts_match_ratios.index(sorted_texts_match_ratios[0]), texts_match_ratios.count(sorted_texts_match_ratios[0]))
|
41 |
|
42 |
-
return
|
43 |
|
44 |
demo = gr.Interface(
|
45 |
fn=classify_lyrics,
|
46 |
inputs=["text"],
|
47 |
-
outputs=["
|
48 |
)
|
49 |
|
50 |
if __name__ == "__main__":
|
|
|
39 |
|
40 |
print(result, texts_match_ratios.index(sorted_texts_match_ratios[0]), texts_match_ratios.count(sorted_texts_match_ratios[0]))
|
41 |
|
42 |
+
return sorted_texts_match_ratios[0], result[0], result[1]
|
43 |
|
44 |
demo = gr.Interface(
|
45 |
fn=classify_lyrics,
|
46 |
inputs=["text"],
|
47 |
+
outputs=["label", "text", "text"],
|
48 |
)
|
49 |
|
50 |
if __name__ == "__main__":
|