DHEIVER commited on
Commit
641c113
·
1 Parent(s): 2d1141c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -11
app.py CHANGED
@@ -1,5 +1,4 @@
1
  import gradio as gr
2
- from huggingface_hub import from_pretrained_keras
3
  import pandas as pd
4
  import numpy as np
5
  import json
@@ -75,15 +74,11 @@ outputs = gr.outputs.Image()
75
 
76
  iface = gr.Interface(
77
  fn=master,
78
- inputs=gr.inputs.File(label="Upload CSV File"),
79
- outputs=[
80
- gr.outputs.Image(label="Anomalous Data Points"),
81
- gr.outputs.Dataframe(label="Detected Outliers")
82
- ],
83
- title="Detecção de Anomalias Industriais com Uso de IA - OSH Technology",
84
- description="Este aplicativo detecta anomalias em dados de séries temporais industriais usando IA. Faça o upload de um arquivo CSV contendo os dados de séries temporais e o aplicativo detectará as anomalias, destacando os pontos de dados anômalos no gráfico e exibindo uma tabela com os registros das anomalias detectadas."
85
  )
86
 
87
-
88
-
89
- iface.launch()
 
1
  import gradio as gr
 
2
  import pandas as pd
3
  import numpy as np
4
  import json
 
74
 
75
  iface = gr.Interface(
76
  fn=master,
77
+ inputs=gr.inputs.File(label="CSV File"),
78
+ outputs=outputs,
79
+ examples=["https://raw.githubusercontent.com/numenta/NAB/master/data/artificialWithAnomaly/art_daily_jumpsup.csv"],
80
+ title="Timeseries Anomaly Detection Using an Autoencoder",
81
+ description="Anomaly detection of timeseries data."
 
 
82
  )
83
 
84
+ iface.launch()