Skip to content

Commit

Permalink
Update gradio example (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Nov 3, 2023
1 parent 1616fd0 commit 0a3e043
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/notebooks/66_gradio.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"demo = gr.Interface(\n",
" fn=viz_cog,\n",
" inputs=gr.Text(value=url, label='Enter a COG URL'),\n",
" outputs=gr.Plot().style(),\n",
" outputs=gr.Plot(),\n",
")\n",
"# demo.launch()"
]
Expand Down
14 changes: 13 additions & 1 deletion examples/notebooks/66_gradio.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"demo = gr.Interface(\n",
" fn=viz_cog,\n",
" inputs=gr.Text(value=url, label='Enter a COG URL'),\n",
" outputs=gr.Plot().style(),\n",
" outputs=gr.Plot(),\n",
")\n",
"# demo.launch()"
]
Expand All @@ -109,6 +109,18 @@
"display_name": "Python 3",
"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.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 0a3e043

Please sign in to comment.