teticio commited on
Commit
9725e54
1 Parent(s): 9a6f33a

add abilithy to generate audio from another audio

Browse files
Files changed (1) hide show
  1. notebooks/test_model.ipynb +2 -1
notebooks/test_model.ipynb CHANGED
@@ -155,6 +155,7 @@
155
  },
156
  "outputs": [],
157
  "source": [
 
158
  "loop = AudioDiffusion.loop_it(audio, sample_rate, loops=1)\n",
159
  "for variation in range(12):\n",
160
  " image2, (\n",
@@ -162,7 +163,7 @@
162
  " ) = audio_diffusion.generate_spectrogram_and_audio_from_audio(\n",
163
  " raw_audio=audio,\n",
164
  " slice=0,\n",
165
- " start_step=500,\n",
166
  " steps=1000)\n",
167
  " display(image2)\n",
168
  " display(Audio(audio2, rate=sample_rate))\n",
 
155
  },
156
  "outputs": [],
157
  "source": [
158
+ "start_steps = 500 #@param {type:\"slider\", min:0, max:1000, step:10}\n",
159
  "loop = AudioDiffusion.loop_it(audio, sample_rate, loops=1)\n",
160
  "for variation in range(12):\n",
161
  " image2, (\n",
 
163
  " ) = audio_diffusion.generate_spectrogram_and_audio_from_audio(\n",
164
  " raw_audio=audio,\n",
165
  " slice=0,\n",
166
+ " start_step=start_steps,\n",
167
  " steps=1000)\n",
168
  " display(image2)\n",
169
  " display(Audio(audio2, rate=sample_rate))\n",