Update app.py
Browse files
app.py
CHANGED
@@ -11,17 +11,17 @@ output = query({
|
|
11 |
"inputs": "I like you. I love you",
|
12 |
})
|
13 |
|
14 |
-
#
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
|
27 |
-
|
|
|
11 |
"inputs": "I like you. I love you",
|
12 |
})
|
13 |
|
14 |
+
# Gradio Interface
|
15 |
+
iface = gr.Interface(
|
16 |
+
fn=predict_sentiment_and_stock_info,
|
17 |
+
inputs=[gr.Textbox(lines=2, label="Financial Statement")],
|
18 |
+
outputs=[
|
19 |
+
gr.Textbox(label="Sentiment"),
|
20 |
+
gr.Textbox(label="Advice")
|
21 |
+
],
|
22 |
+
live=True,
|
23 |
+
title="Financial Content Sentiment Analysis",
|
24 |
+
description="Enter a financial statement to analyze its sentiment."
|
25 |
+
)
|
26 |
|
27 |
+
iface.launch()
|