Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,8 @@ model_themes = {
|
|
| 16 |
}
|
| 17 |
|
| 18 |
# 選択されたモデル(初回読み込み時のデフォルト値)
|
| 19 |
-
current_model = "
|
| 20 |
-
theme = model_themes.get(current_model, {"primary": "#
|
| 21 |
|
| 22 |
# ページ設定
|
| 23 |
st.set_page_config(
|
|
@@ -101,14 +101,14 @@ with st.sidebar:
|
|
| 101 |
"mistral-saba-24b",
|
| 102 |
"qwen-qwq-32b"
|
| 103 |
],
|
| 104 |
-
index=
|
| 105 |
help="使用するAIモデルを選択します。各モデルによって生成結果の特性が異なります"
|
| 106 |
)
|
| 107 |
|
| 108 |
# モデル選択時に変数を更新
|
| 109 |
if model != current_model:
|
| 110 |
current_model = model
|
| 111 |
-
theme = model_themes.get(current_model, {"primary": "#
|
| 112 |
|
| 113 |
# テーマの更新(実際には再読み込みが必要)
|
| 114 |
st.markdown(f"""
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
# 選択されたモデル(初回読み込み時のデフォルト値)
|
| 19 |
+
current_model = "qwen-qwq-32b"
|
| 20 |
+
theme = model_themes.get(current_model, {"primary": "#6a1b9a", "secondary": "#e1bee7"})
|
| 21 |
|
| 22 |
# ページ設定
|
| 23 |
st.set_page_config(
|
|
|
|
| 101 |
"mistral-saba-24b",
|
| 102 |
"qwen-qwq-32b"
|
| 103 |
],
|
| 104 |
+
index=4, # デフォルトは qwen-qwq-32b
|
| 105 |
help="使用するAIモデルを選択します。各モデルによって生成結果の特性が異なります"
|
| 106 |
)
|
| 107 |
|
| 108 |
# モデル選択時に変数を更新
|
| 109 |
if model != current_model:
|
| 110 |
current_model = model
|
| 111 |
+
theme = model_themes.get(current_model, {"primary": "#6a1b9a", "secondary": "#e1bee7"})
|
| 112 |
|
| 113 |
# テーマの更新(実際には再読み込みが必要)
|
| 114 |
st.markdown(f"""
|