NikhilR11 commited on
Commit
04f9d3b
·
1 Parent(s): 74b53a1

Switch to WiroAI-Finance-Qwen-7B model

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +3 -3
README.md CHANGED
@@ -16,7 +16,7 @@ short_description: Finance AI Chatbot powered by AdaptLLM
16
 
17
  # 💰 PortfolioBuzz - Finance Chat
18
 
19
- A finance-focused AI assistant powered by [AdaptLLM/finance-chat](https://huggingface.co/AdaptLLM/finance-chat), a domain-specific LLM based on LLaMA-2-Chat-7B.
20
 
21
  ## Features
22
  - Expert financial advice and analysis
 
16
 
17
  # 💰 PortfolioBuzz - Finance Chat
18
 
19
+ A finance-focused AI assistant powered by [WiroAI-Finance-Qwen-7B](https://huggingface.co/WiroAI/WiroAI-Finance-Qwen-7B), a specialized finance LLM.
20
 
21
  ## Features
22
  - Expert financial advice and analysis
app.py CHANGED
@@ -14,7 +14,7 @@ def respond(
14
  """
15
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
16
  """
17
- client = InferenceClient(token=hf_token.token, model="AdaptLLM/finance-chat")
18
 
19
  messages = [{"role": "system", "content": system_message}]
20
 
@@ -46,8 +46,8 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
46
  chatbot = gr.ChatInterface(
47
  respond,
48
  type="messages",
49
- title="💰 Finance Chat",
50
- description="A finance-focused AI assistant powered by AdaptLLM/finance-chat. Ask questions about investments, markets, financial planning, and more!",
51
  additional_inputs=[
52
  gr.Textbox(value="You are an expert financial advisor and analyst. Provide helpful, accurate, and professional advice on finance, investments, markets, and economic topics. Always be clear about risks and encourage users to consult with certified professionals for major financial decisions.", label="System message"),
53
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
14
  """
15
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
16
  """
17
+ client = InferenceClient(token=hf_token.token, model="WiroAI/WiroAI-Finance-Qwen-7B")
18
 
19
  messages = [{"role": "system", "content": system_message}]
20
 
 
46
  chatbot = gr.ChatInterface(
47
  respond,
48
  type="messages",
49
+ title="Finance buzz Chat",
50
+ description="A finance-focused AI assistant powered by WiroAI-Finance-Qwen-7B. Ask questions about investments, markets, financial planning, and more!",
51
  additional_inputs=[
52
  gr.Textbox(value="You are an expert financial advisor and analyst. Provide helpful, accurate, and professional advice on finance, investments, markets, and economic topics. Always be clear about risks and encourage users to consult with certified professionals for major financial decisions.", label="System message"),
53
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),