File size: 456 Bytes
4eac486 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import gradio as gr\n",
"\n",
"def greet(name):\n",
" return \"Hello \" + name + \"!\"\n",
"\n",
"demo = gr.Interface(fn=greet, inputs=\"text\", outputs=\"text\")\n",
"demo.launch() "
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
|