Spaces:
Running
Running
pgurazada1
commited on
Commit
•
f4b3f52
1
Parent(s):
87db256
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def predict(user_input):
|
|
75 |
|
76 |
textbox = gr.Textbox(placeholder="Enter your query here", lines=6)
|
77 |
|
78 |
-
|
79 |
inputs=textbox, fn=predict, outputs="text",
|
80 |
title="AMA on Tesla 10-K statements",
|
81 |
description="This web API presents an interface to ask questions on contents of the Tesla 10-K reports for the period 2019 - 2023.",
|
@@ -84,11 +84,10 @@ interface = gr.Interface(
|
|
84 |
["Summarize the Management Discussion and Analysis section of the 2021 report in 50 words.", ""],
|
85 |
["What was the company's debt level in 2020?", ""],
|
86 |
["Identify 5 key risks identified in the 2019 10k report? Respond with bullet point summaries.", ""]
|
87 |
-
]
|
|
|
88 |
)
|
89 |
|
90 |
-
with gr.Blocks() as demo:
|
91 |
-
interface.launch()
|
92 |
|
93 |
-
demo.queue(
|
94 |
-
demo.launch()
|
|
|
75 |
|
76 |
textbox = gr.Textbox(placeholder="Enter your query here", lines=6)
|
77 |
|
78 |
+
demo = gr.Interface(
|
79 |
inputs=textbox, fn=predict, outputs="text",
|
80 |
title="AMA on Tesla 10-K statements",
|
81 |
description="This web API presents an interface to ask questions on contents of the Tesla 10-K reports for the period 2019 - 2023.",
|
|
|
84 |
["Summarize the Management Discussion and Analysis section of the 2021 report in 50 words.", ""],
|
85 |
["What was the company's debt level in 2020?", ""],
|
86 |
["Identify 5 key risks identified in the 2019 10k report? Respond with bullet point summaries.", ""]
|
87 |
+
],
|
88 |
+
concurrency_limit=16
|
89 |
)
|
90 |
|
|
|
|
|
91 |
|
92 |
+
demo.queue()
|
93 |
+
demo.launch(auth=("demouser", os.getenv('PASSWD')))
|