Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,23 +70,28 @@ title = "Loan Status Classifier"
|
|
| 70 |
description = (
|
| 71 |
"Enter the details of the loan to check the status of the loan."
|
| 72 |
)
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
fn=keep_alive,
|
| 75 |
inputs=[],
|
| 76 |
outputs="text",
|
| 77 |
api_name="keep_alive"
|
| 78 |
)
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
title=title,
|
| 85 |
-
description=description,
|
| 86 |
-
).launch(share=True)
|
| 87 |
-
|
| 88 |
-
# def greet(name):
|
| 89 |
-
# return "Hello " + name + "!!"
|
| 90 |
#
|
| 91 |
#
|
| 92 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
|
| 70 |
description = (
|
| 71 |
"Enter the details of the loan to check the status of the loan."
|
| 72 |
)
|
| 73 |
+
|
| 74 |
+
with gr.Blocks() as demo:
|
| 75 |
+
gr.Interface(
|
| 76 |
+
# fn=keep_alive,
|
| 77 |
+
fn=predict_loan_status,
|
| 78 |
+
inputs=inputs,
|
| 79 |
+
outputs=outputs,
|
| 80 |
+
title=title,
|
| 81 |
+
description=description,
|
| 82 |
+
)
|
| 83 |
+
|
| 84 |
+
gr.Interface(
|
| 85 |
fn=keep_alive,
|
| 86 |
inputs=[],
|
| 87 |
outputs="text",
|
| 88 |
api_name="keep_alive"
|
| 89 |
)
|
| 90 |
+
|
| 91 |
+
demo.launch()
|
| 92 |
+
|
| 93 |
+
def greet(name):
|
| 94 |
+
return "Hello " + name + "!!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
#
|
| 96 |
#
|
| 97 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|