testmodel / app.py
hamdan07's picture
Update app.py
121cc41
raw
history blame
536 Bytes
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()