Updated due to breaking change in Gradio v5
This commit is contained in:
@@ -49,6 +49,9 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Updated to change from height to max_height due to change in Gradio v5\n",
|
||||
"# With much thanks to student Ed B. for raising this\n",
|
||||
"\n",
|
||||
"with gr.Blocks(title=\"The Price is Right\", fill_width=True) as ui:\n",
|
||||
"\n",
|
||||
" initial_deal = Deal(product_description=\"Example description\", price=100.0, url=\"https://cnn.com\")\n",
|
||||
@@ -69,7 +72,7 @@
|
||||
" column_widths=[4, 1, 1, 1, 2],\n",
|
||||
" row_count=10,\n",
|
||||
" col_count=5,\n",
|
||||
" height=400,\n",
|
||||
" max_height=400,\n",
|
||||
" )\n",
|
||||
"\n",
|
||||
" ui.load(get_table, inputs=[opportunities], outputs=[opportunities_dataframe])\n",
|
||||
@@ -111,7 +114,7 @@
|
||||
" column_widths=[4, 1, 1, 1, 2],\n",
|
||||
" row_count=10,\n",
|
||||
" col_count=5,\n",
|
||||
" height=400,\n",
|
||||
" max_height=400,\n",
|
||||
" )\n",
|
||||
"\n",
|
||||
" ui.load(get_table, inputs=[opportunities], outputs=[opportunities_dataframe])\n",
|
||||
|
||||
Reference in New Issue
Block a user