hra commited on
Commit
285fd92
1 Parent(s): 663d261

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def getstuff(openapikey,category_selector):
45
  querylist[i],
46
  llm_predictor=llm_predictor,
47
  response_mode="tree_summarize",
48
- similarity_top_k=len(documents)/3
49
  )
50
  answerlist.append(response.response)
51
 
@@ -55,7 +55,7 @@ def getstuff(openapikey,category_selector):
55
  with gr.Blocks() as demo:
56
  gr.Markdown("<h1><center>ChatGPT Stock News Snapshots</center></h1>")
57
  gr.Markdown(
58
- """What are the sectors with positive momentum? What are the top technologies? Which companies have momentum? And much more. \n\nShowcases ChatGPT integrated with real data. It shows how to get real-time data and marry it with ChatGPT capabilities. This demonstrates 'Chain of Thought' thinking using ChatGPT.\nLangChain & GPT-Index are both used.\n ![visitors](https://visitor-badge.glitch.me/badge?page_id=hra.ChatGPT-Tech-Radar)"""
59
  )
60
 
61
  with gr.Row() as row:
 
45
  querylist[i],
46
  llm_predictor=llm_predictor,
47
  response_mode="tree_summarize",
48
+ similarity_top_k=int(len(documents)/3)
49
  )
50
  answerlist.append(response.response)
51
 
 
55
  with gr.Blocks() as demo:
56
  gr.Markdown("<h1><center>ChatGPT Stock News Snapshots</center></h1>")
57
  gr.Markdown(
58
+ """What are the sectors with positive momentum? What are the top technologies? Which companies have momentum? And much more. \n\nShowcases ChatGPT integrated with real data. It shows how to get real-time data and marry it with ChatGPT capabilities. This demonstrates 'Chain of Thought' thinking using ChatGPT.\nLangChain & GPT-Index are both used.\n ![visitors](https://visitor-badge.glitch.me/badge?page_id=hra.chatgpt-stock-news-snapshots)"""
59
  )
60
 
61
  with gr.Row() as row: