Learto commited on
Commit
ec705bd
·
1 Parent(s): 8b7b6b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -11,17 +11,17 @@ output = query({
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()
 
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()