Spaces:
Sleeping
Sleeping
QAway-to
commited on
Commit
·
740b560
1
Parent(s):
8b21f63
final
Browse files- .idea/misc.xml +3 -0
- app.py +3 -3
.idea/misc.xml
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<project version="4">
|
|
|
|
|
|
|
|
|
|
| 3 |
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (sdfs11)" project-jdk-type="Python SDK" />
|
| 4 |
</project>
|
|
|
|
| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<project version="4">
|
| 3 |
+
<component name="Black">
|
| 4 |
+
<option name="sdkName" value="Python 3.12 (sdfs11)" />
|
| 5 |
+
</component>
|
| 6 |
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (sdfs11)" project-jdk-type="Python SDK" />
|
| 7 |
</project>
|
app.py
CHANGED
|
@@ -102,7 +102,7 @@ def analyze_portfolio_streaming(text: str):
|
|
| 102 |
prompt = f"Вот метрики портфеля: {metrics_text}. Проанализируй их и объясни сильные и слабые стороны на русском языке, как финансовый аналитик."
|
| 103 |
|
| 104 |
response_llm = client.chat.completions.create(
|
| 105 |
-
model="
|
| 106 |
messages=[
|
| 107 |
{"role": "system", "content": SYSTEM_PROMPT},
|
| 108 |
{"role": "user", "content": prompt}
|
|
@@ -142,7 +142,7 @@ def compare_portfolios_streaming(text1: str, text2: str):
|
|
| 142 |
Сделай сравнительный анализ на русском языке как финансовый аналитик. Укажи, какой портфель сильнее, в чём риски, где преимущества."""
|
| 143 |
|
| 144 |
response = client.chat.completions.create(
|
| 145 |
-
model="
|
| 146 |
messages=[
|
| 147 |
{"role": "system", "content": SYSTEM_PROMPT},
|
| 148 |
{"role": "user", "content": prompt}
|
|
@@ -159,7 +159,7 @@ def compare_portfolios_streaming(text1: str, text2: str):
|
|
| 159 |
|
| 160 |
def handle_chat_streaming(user_input):
|
| 161 |
response = client.chat.completions.create(
|
| 162 |
-
model="
|
| 163 |
messages=[
|
| 164 |
{"role": "system", "content": TRADELINK_CONTEXT},
|
| 165 |
{"role": "user", "content": user_input}
|
|
|
|
| 102 |
prompt = f"Вот метрики портфеля: {metrics_text}. Проанализируй их и объясни сильные и слабые стороны на русском языке, как финансовый аналитик."
|
| 103 |
|
| 104 |
response_llm = client.chat.completions.create(
|
| 105 |
+
model="Qwen/Qwen2-7B-Instruct",
|
| 106 |
messages=[
|
| 107 |
{"role": "system", "content": SYSTEM_PROMPT},
|
| 108 |
{"role": "user", "content": prompt}
|
|
|
|
| 142 |
Сделай сравнительный анализ на русском языке как финансовый аналитик. Укажи, какой портфель сильнее, в чём риски, где преимущества."""
|
| 143 |
|
| 144 |
response = client.chat.completions.create(
|
| 145 |
+
model="Qwen/Qwen2-7B-Instruct",
|
| 146 |
messages=[
|
| 147 |
{"role": "system", "content": SYSTEM_PROMPT},
|
| 148 |
{"role": "user", "content": prompt}
|
|
|
|
| 159 |
|
| 160 |
def handle_chat_streaming(user_input):
|
| 161 |
response = client.chat.completions.create(
|
| 162 |
+
model="Qwen/Qwen2-7B-Instruct",
|
| 163 |
messages=[
|
| 164 |
{"role": "system", "content": TRADELINK_CONTEXT},
|
| 165 |
{"role": "user", "content": user_input}
|