Skip to content

Commit

Permalink
streaming support for transcribe
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiltseb committed Dec 15, 2023
1 parent f630893 commit 39f5657
Showing 1 changed file with 41 additions and 6 deletions.
47 changes: 41 additions & 6 deletions notebooks/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,50 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 39,
"metadata": {},
"outputs": [
{
"ename": "IndentationError",
"evalue": "expected an indented block after 'if' statement on line 12 (2726950288.py, line 19)",
"output_type": "error",
"traceback": [
"\u001b[0;36m Cell \u001b[0;32mIn[38], line 19\u001b[0;36m\u001b[0m\n\u001b[0;31m segments = json_data.get(\"segments\")\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mIndentationError\u001b[0m\u001b[0;31m:\u001b[0m expected an indented block after 'if' statement on line 12\n"
"name": "stdout",
"output_type": "stream",
"text": [
" Now I want to return to the conservation of mechanical energy.\n",
" I have here a pendulum.\n",
" I have an object that weighs 15 kilograms\n",
" and I can lift it up one meter, which I have done now.\n",
" If I let it fall, then that will be converted to kinetic energy.\n",
" If I would let it swing from one meter height\n",
" and you would be there and it would hit you, you'd be dead.\n",
" 150 joules is enough to kill you.\n",
" They use them to demolish buildings.\n",
" You lift up a very heavy object, even heavier than this,\n",
" and then you let it go, you swing it,\n",
" thereby converting gravitational potential energy into kinetic energy\n",
" which is the whole idea of wrecking.\n",
" So you are using then the conversion of gravitational potential energy to kinetic energy.\n",
" Now, I am such a strong believer of the conservation of mechanical energy\n",
" that I am willing to put my life on the line.\n",
" If I release that bob from a certain height,\n",
" then that bob can never come back to a point where the height is any larger.\n",
" If I release it from this height and it swings,\n",
" then when it reaches here, it could not be higher.\n",
" It could go from gravitational potential energy to kinetic energy\n",
" back to gravitational potential energy and it will come to a stop here.\n",
" And when it swings back, it should not be able to reach any higher\n",
" provided that I do not give this object an initial speed when I stand here.\n",
" I may not trust myself.\n",
" I'm going to release this object and I hope I will be able to do it at zero speed\n",
" so that when it comes back it may touch my chin but it may not crush my chin.\n",
" I want you to be extremely quiet because this is no joke.\n",
" If I release this object at zero speed, then this will be my last lecture.\n",
" I will close my eyes. I don't want to see this.\n",
" So please be very quiet. I almost didn't sleep all night.\n",
" Three, two, one, zero.\n",
" Physics works and I'm still alive.\n",
"\n",
"\n",
"===================\n",
"End of Transcription\n"
]
}
],
Expand Down

0 comments on commit 39f5657

Please sign in to comment.