Spaces:
Running
Running
asigalov61
commited on
Commit
•
4301ec8
1
Parent(s):
86dfaf8
Update app.py
Browse files
app.py
CHANGED
@@ -43,11 +43,11 @@ def find_midi(title, artist):
|
|
43 |
|
44 |
search_string = ''
|
45 |
|
46 |
-
if
|
47 |
-
search_string =
|
48 |
|
49 |
else:
|
50 |
-
search_string =
|
51 |
|
52 |
search_match = process.extract(query=search_string, choices=titles_index, limit=1)
|
53 |
search_index = titles_index.index(search_match[0][0])
|
|
|
43 |
|
44 |
search_string = ''
|
45 |
|
46 |
+
if title != '' and artist != '':
|
47 |
+
search_string = title + ' --- ' + artist
|
48 |
|
49 |
else:
|
50 |
+
search_string = title + artist
|
51 |
|
52 |
search_match = process.extract(query=search_string, choices=titles_index, limit=1)
|
53 |
search_index = titles_index.index(search_match[0][0])
|