Spaces:
Runtime error
Runtime error
Commit
·
b73511a
1
Parent(s):
ebb882a
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,14 +48,13 @@ def dataframe(file_obj):
|
|
| 48 |
|
| 49 |
file = gr.components.File(file_count="single", type="file", label="Fisierul CSV cu tranzactii", optional=False)
|
| 50 |
y_pred_df = gr.components.Dataframe(max_rows=20, max_cols=None, overflow_row_behaviour="paginate", type="pandas", label="predictedFraud - Predictii bazate pe modelul de clasificare isFraud - Etichetele reale")
|
| 51 |
-
tree_structure = gr.Image("https://imgur.com/a/dTj0c7X", label="Structura arborelui de decizie")
|
| 52 |
interface_csv = gr.Interface(
|
| 53 |
fn=dataframe,
|
| 54 |
inputs=file,
|
| 55 |
outputs=y_pred_df,
|
| 56 |
title="Fraud Detection - EXPERT SYSTEM",
|
| 57 |
description="Sistem expert bazat pe un model de clasificare pentru detectarea fraudelor in tranzactii bancare",
|
| 58 |
-
article=
|
| 59 |
)
|
| 60 |
|
| 61 |
interface_csv.launch(inline=False)
|
|
|
|
| 48 |
|
| 49 |
file = gr.components.File(file_count="single", type="file", label="Fisierul CSV cu tranzactii", optional=False)
|
| 50 |
y_pred_df = gr.components.Dataframe(max_rows=20, max_cols=None, overflow_row_behaviour="paginate", type="pandas", label="predictedFraud - Predictii bazate pe modelul de clasificare isFraud - Etichetele reale")
|
|
|
|
| 51 |
interface_csv = gr.Interface(
|
| 52 |
fn=dataframe,
|
| 53 |
inputs=file,
|
| 54 |
outputs=y_pred_df,
|
| 55 |
title="Fraud Detection - EXPERT SYSTEM",
|
| 56 |
description="Sistem expert bazat pe un model de clasificare pentru detectarea fraudelor in tranzactii bancare",
|
| 57 |
+
article=gr.Image("https://imgur.com/a/dTj0c7X", label="Structura arborelui de decizie")
|
| 58 |
)
|
| 59 |
|
| 60 |
interface_csv.launch(inline=False)
|