Agusbs98 commited on
Commit
fd6ffa7
·
1 Parent(s): e7656bb

Delete interface.py

Browse files
Files changed (1) hide show
  1. interface.py +0 -20
interface.py DELETED
@@ -1,20 +0,0 @@
1
- from libs import *
2
- from predicts import procesar_archivo
3
- import gradio as gr
4
-
5
- with gr.Blocks() as interface:
6
- gr.Image(value='./ComplutenseTFGBanner.png',show_label=False)
7
- with gr.Column():
8
- format = gr.inputs.Dropdown(["XMLsierra","CSV"],default="XMLsierra",label= "Formato del archivo")
9
- with gr.Row():
10
- number = gr.inputs.Slider(label="Valor",default=200,minimum=1,maximum=999)
11
- unit = gr.inputs.Dropdown(["V","miliV","microV","nanoV"], label="Unidad",default="miliV")
12
- with gr.Column():
13
- frec = gr.inputs.Number(label= "Frecuencia (Hz)",default=500)
14
- file = gr.inputs.File(label="Selecciona un archivo.")
15
- button = gr.Button(value='Analizar')
16
- out = gr.DataFrame(label="Diagnostico automático.",type="pandas",headers = ['Red','Predicción'])
17
- img = gr.outputs.Image(label="Imagen",type='filepath')
18
- button.click(fn=procesar_archivo,inputs=[format,number,unit,frec,file] ,outputs=[out,img])
19
-
20
- interface.launch(share = True)