Spaces:
Runtime error
Runtime error
app
Browse files
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(
|
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 |
|