readme, cleanup

This commit is contained in:
Cornelius Specht 2024-06-14 12:58:25 +02:00
parent 9403f30e0c
commit 524085cf9e
9 changed files with 1306 additions and 7 deletions

View File

@ -1,3 +1,26 @@
# Examples # Notebook Examples
Various example scripts for the [Sandbox](https://sandbox.iuk.hdm-stuttgart.de/). This Repository contains multiple Example Notebooks which demonstrates the [Sandbox](https://sandbox.iuk.hdm-stuttgart.de/) platform capabilities.
## Usecase
The [usecase.ipynb](usecase.ipynb) showcases multiple stylistic tools to create textual, visual, scientific, and interactive use cases.
## Upload Share
The [share_file.ipynb](share_file.ipynb) present how to interact with the datapool by three different ways.
## Slideshows
The [rise_slideshow.ipynb](rise_slideshow.ipynb) shows an example for using the rise plugin to create a slideshow out of a notebook.
## Webcam Eye Detection
The [webcam_eye_detection.ipynb](webcam_eye_detection.ipynb) demonstrates how the Sandbox WebUI (browser) can interact with the server backend by sending Webcam live video streams using WebRTC. This can be used for live processing like face recognition and other tasks.
## ML model Evaluation
The [tf-cifar10.ipynb](tf-cifar10.ipynb) shows how a model can be quickly evaluated and trained, as a preparation for long running ML training tasks.
## Text to Image
The [text_to_image.ipynb](text_to_image.ipynb) shows a interactive notebook which generates pictures from the user input by the stable diffusion model.
## Audio to Text
The [whisper_audio_to_text.ipynb](whisper_audio_to_text.ipynb) demonstrates OpenAIs whisper model which can be used to convert audio to text transcription.
*additional information can be found at [https://docs.sandbox.iuk.hdm-stuttgart.de](https://docs.sandbox.iuk.hdm-stuttgart.de)*

543
rise_slideshow.ipynb Normal file
View File

@ -0,0 +1,543 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"*this notebook works in any Sandbox environments* "
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Turn your notebooks into slideshows"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": ""
}
},
"source": [
"Press `Space` to proceed."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"You can write a regular Jupyter notebook, with the usual mix of markdown and code cells (keep on pressing `Space`)."
]
},
{
"cell_type": "markdown",
"metadata": {
"cell_style": "center",
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"In code cells you press `Shift-Enter` as usual to evaluate your code (but for now press `Space` again)."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"cell_style": "center",
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [
{
"data": {
"text/plain": [
"'Hello world'"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# this is where you press Shift-Enter\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"plt.ion()\n",
"\n",
"\"Hello world\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"But apart from that, `Space` is your friend!"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"You're in a browser, so remember that you can always use smaller / larger fonts with keyboard shortcuts like `Alt +` and `Alt -` or similar (it could be `Ctrl` instead of `Alt` depending on the platform you are on).\n",
"\n",
"<div style=\"font-size: 50%\"> ideally, the following 2 cells are shown side-by-side, at least that was the case with the old-school classic notebook</div>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cell_style": "split",
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [],
"source": [
"# of course you can show figures\n",
"\n",
"def polynom(x):\n",
" return 2 * x**2 - 20 * x + 2\n",
"\n",
"X = np.linspace(-10, 10)\n",
"Y = polynom(X)\n",
"plt.plot(X, Y);"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cell_style": "split",
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [],
"source": [
"# and everything works as usual\n",
"\n",
"# an animation to illustrate \n",
"# translation by variable change\n",
"from ipywidgets import interact, FloatSlider\n",
"\n",
"def parabolic(offset):\n",
" X = np.linspace(-10, 10)\n",
" Y = polynom(X-offset)\n",
" # use same y scale for all offsets\n",
" plt.gca().set_ylim([-100, 500])\n",
" plt.plot(X, Y);\n",
" \n",
"interact(parabolic, \n",
" offset=FloatSlider(min=-10., max=10.,\n",
" step=0.25));"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# The RISE notebook extension"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"All this is achieved through the RISE notebook extension.\n",
"\n",
"See full documentation at http://rise.readthedocs.io/."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Thanks to reveal.js"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The underlying tool is [reveal.js](https://revealjs.com/), and it supports a lot of cool features."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"For example you can organize your show into:\n",
"\n",
"* slides (left to right)\n",
"* subslides (top to bottom)\n",
"* fragments (stops inside a slide)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"You do not need to worry, just press `Space` to proceed along the main line."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"For example this is a subslide; observe the cursor in the bottom right corner."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you press `Shift-Space` - here or anywhere else - you will go backwards, so here it would be up."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Speaker notes"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you now press `t` you should see a second window open, with a presenter view, that shows *Notes* cells - that won't show up in the main slides."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"This is an example of a *Notes* cell."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": ""
}
},
"source": [
"Next, we'll cover how to tag cells as *Slide*, *SubSlide*, *Fragment* or *Notes*."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# How to create slideshows"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 1: enable slideshow cell toolbar"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](slide-toolbar.png)"
]
},
{
"cell_type": "markdown",
"metadata": {
"cell_style": "center",
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Step 2: add appropriate tag to each cell"
]
},
{
"cell_type": "markdown",
"metadata": {
"cell_style": "split"
},
"source": [
"From the cell toolbar...\n",
"\n",
"![](toolbar-options.png)"
]
},
{
"cell_type": "markdown",
"metadata": {
"cell_style": "split",
"slideshow": {
"slide_type": "-"
}
},
"source": [
"or, in command mode, use keyboard shortcuts\n",
"\n",
"* `shift-i` : toggle slide\n",
"* `shift-b` : toggle subslide\n",
"* `shift-g` : toggle fragment"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# CSS"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"2 files are loaded without the need for configuring\n",
"\n",
"* `rise.css` in the current directory\n",
"* `README.css` for this notebook because it is called `README.ipynb`\n",
"\n",
"If that works then the cell below has a large border width and a big south-east border-radius"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"slideshow": {
"slide_type": "-"
}
},
"outputs": [],
"source": [
"# sample code cell\n",
"message = \"my look is changed by both rise.css and README.css\""
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Publishing on binder"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In order for a binder-hosted notebook to start in slideshow mode, you need to have the following tag set in the notebook metadata:\n",
"\n",
"```javascript \n",
" ...\n",
" \"rise\": {\n",
" \"autolaunch\": true\n",
" }\n",
" ...\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"You can edit the notebook metadata from the `edit` menu, submenu `edit notebook metadata`.\n",
"\n",
"Note finally that the `rise` key in this json file used to be named `livereveal`. The latter is still honored, but the former takes precedence, and it is recommended to use only `rise` from now on."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Chalkboard"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"As an option, you can turn on the *chalkboard* reveal plugin, that manifests itself with 2 extra buttons in the lower left area, that let you add free drawings on your slides."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This option is turned on, in the notebook metadata again, with:\n",
"\n",
"```javascript\n",
" ...\n",
" \"rise\": {\n",
" \"enable_chalkboard\": true\n",
" }\n",
" ...\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# tables"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Mostly for checking the rendering of tables, here's a few samples"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# first using pandas\n",
"\n",
"import seaborn as sns\n",
"titanic = sns.load_dataset('titanic')\n",
"columns = \"survived\tpclass\tsex\tage\tembarked\tclass\twho\tadult_male\".split()\n",
"titanic[columns].head(8)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"and the same but inlined as markdown\n",
"\n",
"| | survived | pclass | sex | age | embarked | class | who | adult_male |\n",
"|---:|-----------:|---------:|:-------|------:|:-----------|:--------|:------|:-------------|\n",
"| 0 | 0 | 3 | male | 22 | S | Third | man | True |\n",
"| 1 | 1 | 1 | female | 38 | C | First | woman | False |\n",
"| 2 | 1 | 3 | female | 26 | S | Third | woman | False |\n",
"| 3 | 1 | 1 | female | 35 | S | First | woman | False |\n",
"| 4 | 0 | 3 | male | 35 | S | Third | man | True |\n",
"| 5 | 0 | 3 | male | nan | Q | Third | man | True |\n",
"| 6 | 0 | 1 | male | 54 | S | First | man | True |\n",
"| 7 | 0 | 3 | male | 2 | S | Third | child | False |\n"
]
}
],
"metadata": {
"celltoolbar": "Slideshow",
"jupytext": {
"formats": "ipynb"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
},
"rise": {
"autolaunch": true,
"enable_chalkboard": true
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 4
}

View File

@ -4,9 +4,23 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## Example CLI Share (Headless) File Upload\n", "*this notebook works in any Sandbox environments* "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Sharing files on the Sandbox Platform\n",
"### Using Share UI\n",
"\n",
"for non technical users an interactive webservice is provided. [ShareUI](https://share.sandbox.iuk.hdm-stuttgart.de/admin). \n",
"\n",
"![ShareUI](https://gist.github.com/assets/634470/f90a0c03-8834-4685-95ca-a73e98cabc2f)\n",
"\n",
"### Example CLI Share (Headless) File Upload\n",
"The following example provides a code snippet for sharing a file via cli share. The CLI Endpoint is only avaiable from the Sandbox.\n", "The following example provides a code snippet for sharing a file via cli share. The CLI Endpoint is only avaiable from the Sandbox.\n",
"### using python" "#### Using Python"
] ]
}, },
{ {
@ -42,7 +56,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"### using curl\n" "#### Using Curl\n"
] ]
}, },
{ {
@ -56,7 +70,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"### Response\n", "#### Response\n",
"\n", "\n",
"The respone of both requests includes the public available download link and the expiration date.\n", "The respone of both requests includes the public available download link and the expiration date.\n",
"\n", "\n",

View File

@ -1,5 +1,21 @@
{ {
"cells": [ "cells": [
{
"cell_type": "markdown",
"id": "e355f137",
"metadata": {},
"source": [
"*this notebook requires a working PyTorch GPU environment* "
]
},
{
"cell_type": "markdown",
"id": "e04b5280",
"metadata": {},
"source": [
"# Stable Diffusion Text to Image model"
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": 1,

405
tf-cifar10.ipynb Normal file

File diff suppressed because one or more lines are too long

264
usecase.ipynb Normal file
View File

@ -0,0 +1,264 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"*this notebook works in any Sandbox environments* "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Markdown\n",
"The following table shows the general description of the Markdwon syntax to format text."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"| Markdown Syntax | Description |\n",
"| :------------------------------------------------ | :----------------------------------------------------------|\n",
"| ** text ** | format text as **bold** |\n",
"| * text * | format text as *italic* |\n",
"| *** text *** | format text as ***bold &italic*** |\n",
"| # Heading 1 | format text as Heading Level 1 |\n",
"| ## Heading 2 | format text as Heading Level 2 |\n",
"| ### Heading 3 | format text as Heading Level 3 |\n",
"| 1. Listitem <br> 2. Listitem <br> 3. Listitem | format list as Ordered List |\n",
"| * Listitem 1 <br> * Listitem 2 <br> * Listitem 3 | format list as Unordered List (instead of * it can be +, - used) |\n",
"| > blockqute | Blockquote |\n",
"| [ linkdescription ] ( http://URL ) | format text as link |\n",
"| ![ imagecaption ] ( /path/to/image ) | add image to text |\n",
"| --- | Horizontal Rule |\n",
"| ```python 3x(`) | can be used to show embed python syntax with highlighting |\n",
"| `code` (1x`) | can be used to show a small chunk of code |\n",
"|- [x] Write the press release | Tasklist |\n",
"| sup html tag >sup< | use sup tag to superscript characters |\n",
"| sub html tag >sub< | use sub tag to subscript characters |\n",
"\n",
" "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## example for markdown\n",
"the following text is just a placeholder to viszualize the text format. Inside the ***example*** all *markdown syntax* is used which is shown in the **table** above."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Header first Level\n",
"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,\n",
"\n",
"## Header second level\n",
"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem **ipsum** dolor sit amet.\n",
"1. voluptua\n",
"2. magna\n",
"3. consetetur\n",
"\n",
"\n",
"<img src=\"cal_housing_scatter.png\" width=\"800\" height=\"400\">\n",
"\n",
"### Header third level\n",
"Lorem *ipsum* dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,\n",
"* Lorem\n",
"* dolor\n",
"* ***gubergren***\n",
"\n",
"Lorem *ipsum* dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem **ipsum** dolor \n",
"\n",
"```python\n",
"def foo(): \n",
" print(\"bar\")\n",
"\n",
"foo()\n",
"```\n",
"\n",
"Lorem *ipsum* dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"![md](https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/Markdown-mark.svg/208px-Markdown-mark.svg.png)\n",
"\n",
"if you want to know more about markdown syntax just use the [documentation](https://www.markdownguide.org)\n",
"\n",
"\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# *voilà*\n",
"\n",
"In the following examples **controls** are provided with *voila* to show or manipulate diagrams and create interactive notebooks.\n",
"\n",
"1. ***small number multiplicator*** for integers between 0 and 100"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "04713a82a921423aa71381040a9d56a8",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(VBox(children=(IntSlider(value=0), IntSlider(value=0))), Output()))"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from ipywidgets import HBox, VBox, IntSlider, interactive_output\n",
"from IPython.display import display\n",
"\n",
"a = IntSlider()\n",
"b = IntSlider()\n",
"\n",
"def f(a, b):\n",
" print(\"{} * {} = {}\".format(a, b, a * b))\n",
"\n",
"out = interactive_output(f, { \"a\": a, \"b\": b })\n",
"\n",
"display(HBox([VBox([a, b]), out]))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"2. Display **latex formulas** inside a notebook"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"from IPython.display import display\n",
"from IPython.display import (\n",
" Latex, Math\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
"$F=ma$"
],
"text/plain": [
"<IPython.core.display.Latex object>"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"math = Latex(\"$F=ma$\")\n",
"math"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
"\n",
"\\begin{align}\n",
"\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\ \\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\\n",
"\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\\n",
"\\nabla \\cdot \\vec{\\mathbf{B}} & = 0\n",
"\\end{align}\n"
],
"text/plain": [
"<IPython.core.display.Latex object>"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"\n",
"maxwells = Latex(r\"\"\"\n",
"\\begin{align}\n",
"\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\ \\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\\n",
"\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\\n",
"\\nabla \\cdot \\vec{\\mathbf{B}} & = 0\n",
"\\end{align}\n",
"\"\"\")\n",
"maxwells"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"$$a = b + c$$ (line break after the equation)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"$$a = b + c$$ \n",
"\n",
"## (line break after the equation)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
}
},
"nbformat": 4,
"nbformat_minor": 4
}

View File

@ -1,5 +1,12 @@
{ {
"cells": [ "cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"*this notebook works in any Sandbox environments* "
]
},
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},

View File

@ -4,7 +4,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"...original notebook from https://github.com/fastforwardlabs/whisper-openai/blob/master/WhisperDemo.ipynb" "*this notebook requires a working PyTorch GPU environment* "
] ]
}, },
{ {
@ -14,6 +14,9 @@
}, },
"source": [ "source": [
"# OpenAI's Whisper\n", "# OpenAI's Whisper\n",
"\n",
"...original notebook from https://github.com/fastforwardlabs/whisper-openai/blob/master/WhisperDemo.ipynb\n",
"\n",
"Speech to text...\n", "Speech to text...\n",
"\n", "\n",
"more information at\n", "more information at\n",

View File

@ -1,5 +1,29 @@
{ {
"cells": [ "cells": [
{
"cell_type": "markdown",
"id": "b56703b7",
"metadata": {},
"source": [
"*this notebook requires a working PyTorch GPU environment* "
]
},
{
"cell_type": "markdown",
"id": "3967f4b4",
"metadata": {},
"source": [
"# OpenAI's Whisper multimodel\n",
"\n",
"Speech to text...\n",
"\n",
"more information at\n",
"- https://openai.com/blog/whisper\n",
"- https://github.com/openai/whisper\n",
"\n",
"\n"
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,