Spaces:
Build error
Build error
Krish Shah-Nathwani
commited on
Commit
·
230401b
1
Parent(s):
4afb6eb
updated comments
Browse files
app.py
CHANGED
|
@@ -25,7 +25,6 @@ client = InferenceClient("google/flan-t5-small")
|
|
| 25 |
def predict_chord(notes: str):
|
| 26 |
"""
|
| 27 |
Takes a comma-separated string of notes and predicts the chord.
|
| 28 |
-
First tries rule-based, then falls back to the LLM.
|
| 29 |
"""
|
| 30 |
if not notes.strip():
|
| 31 |
return "Please enter 2 or more notes."
|
|
|
|
| 25 |
def predict_chord(notes: str):
|
| 26 |
"""
|
| 27 |
Takes a comma-separated string of notes and predicts the chord.
|
|
|
|
| 28 |
"""
|
| 29 |
if not notes.strip():
|
| 30 |
return "Please enter 2 or more notes."
|