Spaces:
Running
Running
Commit ·
b8db388
1
Parent(s): 7770bcc
Moving to accordian and adding openai to requirements
Browse files- app.py +12 -11
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -198,17 +198,18 @@ with gr.Blocks(title="HASHIRU AI", css=css, fill_width=True, fill_height=True) a
|
|
| 198 |
gr.Button("Logout", link="/logout")
|
| 199 |
|
| 200 |
with gr.Column(scale=1):
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
|
|
|
| 212 |
with gr.Row(scale=1):
|
| 213 |
chatbot = gr.Chatbot(
|
| 214 |
avatar_images=("https://media.githubusercontent.com/media/HASHIRU-AI/HASHIRU/refs/heads/main/HASHIRU_2.png",
|
|
|
|
| 198 |
gr.Button("Logout", link="/logout")
|
| 199 |
|
| 200 |
with gr.Column(scale=1):
|
| 201 |
+
with gr.Accordion("Model Settings", open=False):
|
| 202 |
+
model_dropdown = gr.Dropdown(
|
| 203 |
+
choices=[mode.name for mode in Mode],
|
| 204 |
+
value=model_manager.get_current_modes,
|
| 205 |
+
interactive=True,
|
| 206 |
+
type="index",
|
| 207 |
+
multiselect=True,
|
| 208 |
+
label="Select Modes",
|
| 209 |
+
)
|
| 210 |
+
|
| 211 |
+
model_dropdown.change(
|
| 212 |
+
fn=update_model, inputs=model_dropdown, outputs=[])
|
| 213 |
with gr.Row(scale=1):
|
| 214 |
chatbot = gr.Chatbot(
|
| 215 |
avatar_images=("https://media.githubusercontent.com/media/HASHIRU-AI/HASHIRU/refs/heads/main/HASHIRU_2.png",
|
requirements.txt
CHANGED
|
@@ -18,3 +18,4 @@ google-genai==1.17.0
|
|
| 18 |
itsdangerous==2.2.0
|
| 19 |
setuptools==80.9.0
|
| 20 |
torch==2.7.0
|
|
|
|
|
|
| 18 |
itsdangerous==2.2.0
|
| 19 |
setuptools==80.9.0
|
| 20 |
torch==2.7.0
|
| 21 |
+
openai==1.82.1
|