File size: 536 Bytes
005418e 121cc41 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
import tensorflow as tf
import cv2
title = "Covid 19 Prediction App using X-ray Images"
head = (
"<center>"
"Upload an X-ray image to check for covid19. The app is for research purposes and not clinically authorized"
"</center>"
)
image = gr.inputs.Image(shape=(500, 500), image_mode='L', invert_colors=False, source="upload")
label = gr.outputs.Label()
iface = gr.Interface(fn=predict_input_image, inputs=image, outputs=label,title=title, description=head)
gr.Interface.load("models/swww/test").launch() |