ayinggg commited on
Commit
c9c6c65
·
verified ·
1 Parent(s): c6d8f50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -14
app.py CHANGED
@@ -255,23 +255,13 @@ with gr.Blocks(css=custom_css) as demo:
255
 
256
  invest_input.submit(run_all, inputs=invest_input, outputs=[invest_output, invest_chart])
257
 
258
- with gr.Column(visible=False, elem_id="Stock and Market News") as Zeno_News:
259
- gr.Markdown("## 📰 Stock and Market News")
260
- ticker_input = gr.Textbox(
261
- label="Enter stock tickers (comma-separated, e.g., AAPL, TSLA, MSFT)"
262
- )
263
- news_output = gr.Markdown()
264
-
265
- fetch_button = gr.Button("Get News")
266
- fetch_button.click(
267
- fn=news_api.get_news,
268
- inputs=ticker_input,
269
- outputs=news_output
270
- )
271
 
272
  Zeno_News = gr.Column(visible=False, elem_id="Stock and Market News")
273
  with Zeno_News:
274
  gr.Markdown("## 📰 Stock and Market News")
 
 
 
275
  ticker_input = gr.Textbox(
276
  label="Enter stock tickers (comma-separated, e.g., AAPL, TSLA, MSFT)"
277
  )
@@ -279,7 +269,7 @@ with gr.Blocks(css=custom_css) as demo:
279
 
280
  fetch_button = gr.Button("Get News")
281
  fetch_button.click(
282
- fn=news_api.get_news,
283
  inputs=ticker_input,
284
  outputs=news_output
285
  )
 
255
 
256
  invest_input.submit(run_all, inputs=invest_input, outputs=[invest_output, invest_chart])
257
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
 
259
  Zeno_News = gr.Column(visible=False, elem_id="Stock and Market News")
260
  with Zeno_News:
261
  gr.Markdown("## 📰 Stock and Market News")
262
+
263
+ news =
264
+
265
  ticker_input = gr.Textbox(
266
  label="Enter stock tickers (comma-separated, e.g., AAPL, TSLA, MSFT)"
267
  )
 
269
 
270
  fetch_button = gr.Button("Get News")
271
  fetch_button.click(
272
+ fn=news.get_news,
273
  inputs=ticker_input,
274
  outputs=news_output
275
  )