| import numpy as np |
| import matplotlib.pyplot as plt |
| import matplotlib.colors as mcolors |
| import cv2 |
| import gradio as gr |
|
|
| from channel_functions import individual_channel_image, channel_distribution_plotter, which_channel_dominates |
| description1 = '''Upload an image or drag an online image to the upload section\nDrag and bring it to the rectangular drop area\nRelease it when the border becomes red''' |
| iface1 = gr.Interface(fn = which_channel_dominates, |
| inputs = gr.Image(), |
| outputs = "image", |
| title="Channel domination", |
| description=description1, |
| ) |
|
|
|
|
|
|
| combinedInterface = gr.TabbedInterface([iface1],['Channel']) |
| combinedInterface.launch() |
|
|
|
|