Spaces:
Sleeping
Sleeping
Commit
•
d74323c
1
Parent(s):
c0203c2
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ The schema of the table you can query on is presented below:
|
|
61 |
| deposit | yes/no |has the client subscribed a term deposit? (binary: "yes","no")|
|
62 |
"""
|
63 |
|
64 |
-
|
65 |
inputs=textbox, fn=predict, outputs="text",
|
66 |
title="Query BFSI customer information",
|
67 |
description="This web API presents an interface to ask questions on customer information stored in a database.",
|
@@ -76,8 +76,6 @@ interface = gr.Interface(
|
|
76 |
concurrency_limit=8
|
77 |
)
|
78 |
|
79 |
-
with gr.Blocks() as demo:
|
80 |
-
interface.launch()
|
81 |
|
82 |
demo.queue()
|
83 |
demo.launch(auth=("demouser", os.getenv('PASSWD')))
|
|
|
61 |
| deposit | yes/no |has the client subscribed a term deposit? (binary: "yes","no")|
|
62 |
"""
|
63 |
|
64 |
+
demo = gr.Interface(
|
65 |
inputs=textbox, fn=predict, outputs="text",
|
66 |
title="Query BFSI customer information",
|
67 |
description="This web API presents an interface to ask questions on customer information stored in a database.",
|
|
|
76 |
concurrency_limit=8
|
77 |
)
|
78 |
|
|
|
|
|
79 |
|
80 |
demo.queue()
|
81 |
demo.launch(auth=("demouser", os.getenv('PASSWD')))
|