diff --git a/public/index.html b/public/index.html
index aa069f2..9d5d670 100644
--- a/public/index.html
+++ b/public/index.html
@@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
-
React App
+ Music Akinator
You need to enable JavaScript to run this app.
diff --git a/src/App.js b/src/App.js
index 9b5d486..18930e0 100644
--- a/src/App.js
+++ b/src/App.js
@@ -13,7 +13,7 @@ import SpinnerCard from "./Components/SpinnerCard";
const searchOptions = [
{ value: "lyrics", label: "Lyrics" },
- { value: "humming", label: "Humming" }
+ { value: "recognizer", label: "Song Recognize" }
];
const useStyles = makeStyles({
@@ -47,10 +47,10 @@ function App() {
}
};
- const handleHummingSend = async humming => {
+ const handleSongRecognizeSend = async sample => {
setPending(true);
const formData = new FormData();
- formData.append("file", humming);
+ formData.append("file", sample);
const response = await fetch(
`${process.env.REACT_APP_BACKEND_URL}/recognizeByHumming`,
@@ -102,11 +102,11 @@ function App() {
-
+
{deezerId && !pending && step !== "win" && step !== "lost" && (