Spaces:
Sleeping
Sleeping
Switch to WiroAI-Finance-Qwen-7B model
Browse files
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 [
|
| 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="
|
| 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="
|
| 50 |
-
description="A finance-focused AI assistant powered by
|
| 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"),
|