balthou commited on
Commit
ffe8226
·
1 Parent(s): 8eeb7b8

fix md description

Browse files
Files changed (2) hide show
  1. app.ipynb +47 -0
  2. app.py +1 -1
app.ipynb ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "metadata": {},
7
+ "outputs": [],
8
+ "source": [
9
+ "from app import launch\n",
10
+ "import numpy as np\n",
11
+ "\n",
12
+ "%load_ext autoreload\n",
13
+ "%autoreload 2"
14
+ ]
15
+ },
16
+ {
17
+ "cell_type": "code",
18
+ "execution_count": null,
19
+ "metadata": {},
20
+ "outputs": [],
21
+ "source": [
22
+ "launch(np.ones((256, 256, 3)), backend=\"nb\")"
23
+ ]
24
+ }
25
+ ],
26
+ "metadata": {
27
+ "kernelspec": {
28
+ "display_name": "Python 3",
29
+ "language": "python",
30
+ "name": "python3"
31
+ },
32
+ "language_info": {
33
+ "codemirror_mode": {
34
+ "name": "ipython",
35
+ "version": 3
36
+ },
37
+ "file_extension": ".py",
38
+ "mimetype": "text/x-python",
39
+ "name": "python",
40
+ "nbconvert_exporter": "python",
41
+ "pygments_lexer": "ipython3",
42
+ "version": "3.10.12"
43
+ }
44
+ },
45
+ "nbformat": 4,
46
+ "nbformat_minor": 2
47
+ }
app.py CHANGED
@@ -87,7 +87,7 @@ def add_controls() -> None:
87
  # ------------------------------------------
88
 
89
 
90
- def launch(img: np.ndarray, backend: str = "gradio"):
91
  add_controls()
92
  pipe_interactive = interactive_pipeline(
93
  gui=backend,
 
87
  # ------------------------------------------
88
 
89
 
90
+ def launch(img: np.ndarray, backend: str = "gradio", markdown_description: str = "") -> None:
91
  add_controls()
92
  pipe_interactive = interactive_pipeline(
93
  gui=backend,