Commit 
							
							·
						
						0c19dbc
	
1
								Parent(s):
							
							eb5d565
								
Improve html
Browse files
    	
        main.py
    CHANGED
    
    | @@ -13,12 +13,8 @@ from utils import ( | |
| 13 | 
             
            os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"
         | 
| 14 |  | 
| 15 | 
             
            DESCRIPTION = """
         | 
| 16 | 
            -
            < | 
| 17 | 
            -
            < | 
| 18 | 
            -
             | 
| 19 | 
            -
            <table>
         | 
| 20 | 
            -
                <tr>
         | 
| 21 | 
            -
                    <td valign="top">
         | 
| 22 | 
             
                    <h2>Features:</h2>
         | 
| 23 | 
             
                    <ul>
         | 
| 24 | 
             
                        <li>🎼 Select the genre for the music.</li>
         | 
| @@ -26,10 +22,10 @@ DESCRIPTION = """ | |
| 26 | 
             
                        <li>⏱️ Adjust the "Tempo" slider to change the speed of the music.</li>
         | 
| 27 | 
             
                        <li>🎹 Use the buttons to generate a new song from scratch, continue generation with the current settings, remove the last added instrument, regenerate the last added instrument with a new one, or change the tempo of the current song.</li>
         | 
| 28 | 
             
                    </ul>
         | 
| 29 | 
            -
             | 
| 30 | 
            -
             | 
| 31 | 
             
                    <h2>Outputs:</h2>
         | 
| 32 | 
            -
                     | 
| 33 | 
             
                    <ul>
         | 
| 34 | 
             
                        <li>🎧 The audio of the generated song.</li>
         | 
| 35 | 
             
                        <li>📁 A MIDI file of the song.</li>
         | 
| @@ -37,11 +33,9 @@ DESCRIPTION = """ | |
| 37 | 
             
                        <li>🎸 A list of the generated instruments.</li>
         | 
| 38 | 
             
                        <li>📝 The text sequence of the song.</li>
         | 
| 39 | 
             
                    </ul>
         | 
| 40 | 
            -
             | 
| 41 | 
            -
             | 
| 42 | 
            -
             | 
| 43 | 
            -
             | 
| 44 | 
            -
            <p>Enjoy creating your own AI-generated music!</p>
         | 
| 45 | 
             
            """
         | 
| 46 |  | 
| 47 | 
             
            genres = ["ROCK", "POP", "OTHER", "R&B/SOUL", "JAZZ", "ELECTRONIC", "RANDOM"]
         | 
|  | |
| 13 | 
             
            os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"
         | 
| 14 |  | 
| 15 | 
             
            DESCRIPTION = """
         | 
| 16 | 
            +
            <div style="display: flex; justify-content: space-between;">
         | 
| 17 | 
            +
                <div style="width: 50%;">
         | 
|  | |
|  | |
|  | |
|  | |
| 18 | 
             
                    <h2>Features:</h2>
         | 
| 19 | 
             
                    <ul>
         | 
| 20 | 
             
                        <li>🎼 Select the genre for the music.</li>
         | 
|  | |
| 22 | 
             
                        <li>⏱️ Adjust the "Tempo" slider to change the speed of the music.</li>
         | 
| 23 | 
             
                        <li>🎹 Use the buttons to generate a new song from scratch, continue generation with the current settings, remove the last added instrument, regenerate the last added instrument with a new one, or change the tempo of the current song.</li>
         | 
| 24 | 
             
                    </ul>
         | 
| 25 | 
            +
                </div>
         | 
| 26 | 
            +
                <div style="width: 50%;">
         | 
| 27 | 
             
                    <h2>Outputs:</h2>
         | 
| 28 | 
            +
                    The app outputs the following:
         | 
| 29 | 
             
                    <ul>
         | 
| 30 | 
             
                        <li>🎧 The audio of the generated song.</li>
         | 
| 31 | 
             
                        <li>📁 A MIDI file of the song.</li>
         | 
|  | |
| 33 | 
             
                        <li>🎸 A list of the generated instruments.</li>
         | 
| 34 | 
             
                        <li>📝 The text sequence of the song.</li>
         | 
| 35 | 
             
                    </ul>
         | 
| 36 | 
            +
                </div>
         | 
| 37 | 
            +
            </div>
         | 
| 38 | 
            +
            Enjoy creating your own music!
         | 
|  | |
|  | |
| 39 | 
             
            """
         | 
| 40 |  | 
| 41 | 
             
            genres = ["ROCK", "POP", "OTHER", "R&B/SOUL", "JAZZ", "ELECTRONIC", "RANDOM"]
         | 
