"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"title = \"Classifying x-ray scans as either positive or negative Tuberculosis(TB)\"\n",
"description = \"\"\"Catching TB early can be life altering.\n",
"Among various techniques used for detecting Tuberculosis, image scanning can be aided with computer vision.\n",
"This dataset was obtained from Zindi with link below. \n",
"Note: This model and classification is mainly for educational purpose and any user uses it at their own discretion\"\"\"\n",
"article=\"Link to Zindi competition
\"\n",
"examples = ['patient1.png', 'patient2.png', 'patient3.png']\n",
"enable_queue=True\n",
"\n",
"gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(800, 800)),\n",
" outputs=gr.outputs.Label(num_top_classes=1),\n",
" title=title,\n",
" description=description,article=article,\n",
" examples=examples,\n",
" enable_queue=enable_queue).launch(share=True, )"
]
},
{
"cell_type": "code",
"execution_count": 33,
"id": "655faace",
"metadata": {
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Closing server running on port: 7860\n"
]
}
],
"source": [
"gr.close_all()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.8.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}