joheras commited on
Commit
9e16be5
·
1 Parent(s): 624e1b2
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ import numpy as np
7
  model = from_pretrained_keras("keras-io/timeseries_transformer_classification")
8
 
9
  def detect_issue(csvFile):
10
- df = pd.read_csv(csvFile,header=None)
11
  pred = model.predict(df)[0]
12
  problem = 'No problem'
13
  if(np.argmax(pred)==1):
@@ -18,7 +18,7 @@ def detect_issue(csvFile):
18
  iface = gr.Interface(detect_issue,"dataframe",outputs=[
19
  gr.outputs.Textbox(label="Engine issue"),
20
  gr.outputs.Textbox(label="Engine issue score")],
21
- examples = ["sample.csv"],
22
  )
23
 
24
 
 
7
  model = from_pretrained_keras("keras-io/timeseries_transformer_classification")
8
 
9
  def detect_issue(csvFile):
10
+ df = pd.read_csv('sample.csv',header=None)
11
  pred = model.predict(df)[0]
12
  problem = 'No problem'
13
  if(np.argmax(pred)==1):
 
18
  iface = gr.Interface(detect_issue,"dataframe",outputs=[
19
  gr.outputs.Textbox(label="Engine issue"),
20
  gr.outputs.Textbox(label="Engine issue score")],
21
+ # examples = ["sample.csv"],
22
  )
23
 
24