esteele commited on
Commit
d244e65
·
verified ·
1 Parent(s): 025c146

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -12
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
- gr.Interface(
 
 
 
 
 
 
 
 
 
 
 
74
  fn=keep_alive,
75
  inputs=[],
76
  outputs="text",
77
  api_name="keep_alive"
78
  )
79
- gr.Interface(
80
- # fn=keep_alive,
81
- fn=predict_loan_status,
82
- inputs=inputs,
83
- outputs=outputs,
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")