Spaces:
Runtime error
Runtime error
Commit ·
39995f1
1
Parent(s): f11cbf5
changes
Browse files- 2_gradio.ipynb +10 -10
- app.py +1 -1
2_gradio.ipynb
CHANGED
|
@@ -78,14 +78,14 @@
|
|
| 78 |
},
|
| 79 |
{
|
| 80 |
"cell_type": "code",
|
| 81 |
-
"execution_count":
|
| 82 |
"metadata": {},
|
| 83 |
"outputs": [
|
| 84 |
{
|
| 85 |
"name": "stdout",
|
| 86 |
"output_type": "stream",
|
| 87 |
"text": [
|
| 88 |
-
"Running on local URL: http://127.0.0.1:
|
| 89 |
"\n",
|
| 90 |
"To create a public link, set `share=True` in `launch()`.\n"
|
| 91 |
]
|
|
@@ -93,7 +93,7 @@
|
|
| 93 |
{
|
| 94 |
"data": {
|
| 95 |
"text/html": [
|
| 96 |
-
"<div><iframe src=\"http://127.0.0.1:
|
| 97 |
],
|
| 98 |
"text/plain": [
|
| 99 |
"<IPython.core.display.HTML object>"
|
|
@@ -106,19 +106,19 @@
|
|
| 106 |
"data": {
|
| 107 |
"text/plain": []
|
| 108 |
},
|
| 109 |
-
"execution_count":
|
| 110 |
"metadata": {},
|
| 111 |
"output_type": "execute_result"
|
| 112 |
}
|
| 113 |
],
|
| 114 |
"source": [
|
| 115 |
"with gr.Blocks(theme=gr.themes.Soft(primary_hue='amber', secondary_hue='gray', neutral_hue='amber')) as demo:\n",
|
| 116 |
-
"
|
| 117 |
-
"
|
| 118 |
-
" # Try our
|
| 119 |
-
"
|
| 120 |
-
"
|
| 121 |
-
" txt = gr.Textbox(value='A Christmas present🎄for my 5 years old Kid!!!', label='
|
| 122 |
" btn = gr.Button(value=\"Search for Product\")\n",
|
| 123 |
" state = gr.Dataframe()\n",
|
| 124 |
" # btn.click(greet, inputs='text', outputs=['dataframe'])\n",
|
|
|
|
| 78 |
},
|
| 79 |
{
|
| 80 |
"cell_type": "code",
|
| 81 |
+
"execution_count": 58,
|
| 82 |
"metadata": {},
|
| 83 |
"outputs": [
|
| 84 |
{
|
| 85 |
"name": "stdout",
|
| 86 |
"output_type": "stream",
|
| 87 |
"text": [
|
| 88 |
+
"Running on local URL: http://127.0.0.1:7897\n",
|
| 89 |
"\n",
|
| 90 |
"To create a public link, set `share=True` in `launch()`.\n"
|
| 91 |
]
|
|
|
|
| 93 |
{
|
| 94 |
"data": {
|
| 95 |
"text/html": [
|
| 96 |
+
"<div><iframe src=\"http://127.0.0.1:7897/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
|
| 97 |
],
|
| 98 |
"text/plain": [
|
| 99 |
"<IPython.core.display.HTML object>"
|
|
|
|
| 106 |
"data": {
|
| 107 |
"text/plain": []
|
| 108 |
},
|
| 109 |
+
"execution_count": 58,
|
| 110 |
"metadata": {},
|
| 111 |
"output_type": "execute_result"
|
| 112 |
}
|
| 113 |
],
|
| 114 |
"source": [
|
| 115 |
"with gr.Blocks(theme=gr.themes.Soft(primary_hue='amber', secondary_hue='gray', neutral_hue='amber')) as demo:\n",
|
| 116 |
+
" gr.Markdown(\n",
|
| 117 |
+
" \"\"\"\n",
|
| 118 |
+
" # Try our DEMO!!!\n",
|
| 119 |
+
" \"\"\"\n",
|
| 120 |
+
" )\n",
|
| 121 |
+
" txt = gr.Textbox(value='A Christmas present🎄for my 5 years old Kid!!!', label='What are you looking for?')\n",
|
| 122 |
" btn = gr.Button(value=\"Search for Product\")\n",
|
| 123 |
" state = gr.Dataframe()\n",
|
| 124 |
" # btn.click(greet, inputs='text', outputs=['dataframe'])\n",
|
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def greet(text1):
|
|
| 36 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue='amber', secondary_hue='gray', neutral_hue='amber')) as demo:
|
| 37 |
gr.Markdown(
|
| 38 |
"""
|
| 39 |
-
# Try our
|
| 40 |
"""
|
| 41 |
)
|
| 42 |
txt = gr.Textbox(value='A Christmas present🎄for my 5 years old Kid!!!', label='What are you looking for?')
|
|
|
|
| 36 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue='amber', secondary_hue='gray', neutral_hue='amber')) as demo:
|
| 37 |
gr.Markdown(
|
| 38 |
"""
|
| 39 |
+
# Try our DEMO!!!
|
| 40 |
"""
|
| 41 |
)
|
| 42 |
txt = gr.Textbox(value='A Christmas present🎄for my 5 years old Kid!!!', label='What are you looking for?')
|