Spaces:
Sleeping
Sleeping
| import gradio | |
| import os | |
| import numpy as np | |
| def run_inference(): | |
| return None | |
| description = "这是一个简单的辐射源个体识别应用!" | |
| article = """ | |
| 以下是相关的测试demo. | |
| """ | |
| iface = gradio.Interface(run_inference, | |
| [gradio.Image(shape=None, type="pil", label='原信息'), | |
| gradio.Slider(0, 100, default=100, label="比例1(%)"), | |
| gradio.Slider(0, 100, default=100, label="比例2 (%)"), | |
| gradio.CheckboxGroup(["对比", "测试"], label='Options')], | |
| "image", | |
| title="信号分析", | |
| description=description, | |
| article=article, | |
| layout="vertical") | |
| iface.launch() |