Spaces:
Runtime error
Runtime error
frankaging
commited on
Commit
·
62be892
1
Parent(s):
7de2513
hande made
Browse files
app.py
CHANGED
|
@@ -175,7 +175,7 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 175 |
|
| 176 |
with gr.Row(min_height=700):
|
| 177 |
# Left side: bigger chat area
|
| 178 |
-
with gr.Column(scale=
|
| 179 |
chat_interface = gr.ChatInterface(
|
| 180 |
fn=generate,
|
| 181 |
title="Chat with a Concept Steering Model",
|
|
@@ -186,7 +186,7 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 186 |
)
|
| 187 |
|
| 188 |
# Right side: concept management
|
| 189 |
-
with gr.Column(scale=
|
| 190 |
gr.Markdown("## Steer Model Responses")
|
| 191 |
gr.Markdown("Search and then select a concept to steer. The closest match will be automatically selected.")
|
| 192 |
# Concept Search and Selection
|
|
@@ -197,7 +197,7 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 197 |
lines=2,
|
| 198 |
)
|
| 199 |
concept_dropdown = gr.Dropdown(
|
| 200 |
-
label="Select a concept to steer the model",
|
| 201 |
interactive=True,
|
| 202 |
allow_custom_value=False
|
| 203 |
)
|
|
|
|
| 175 |
|
| 176 |
with gr.Row(min_height=700):
|
| 177 |
# Left side: bigger chat area
|
| 178 |
+
with gr.Column(scale=6):
|
| 179 |
chat_interface = gr.ChatInterface(
|
| 180 |
fn=generate,
|
| 181 |
title="Chat with a Concept Steering Model",
|
|
|
|
| 186 |
)
|
| 187 |
|
| 188 |
# Right side: concept management
|
| 189 |
+
with gr.Column(scale=4):
|
| 190 |
gr.Markdown("## Steer Model Responses")
|
| 191 |
gr.Markdown("Search and then select a concept to steer. The closest match will be automatically selected.")
|
| 192 |
# Concept Search and Selection
|
|
|
|
| 197 |
lines=2,
|
| 198 |
)
|
| 199 |
concept_dropdown = gr.Dropdown(
|
| 200 |
+
label="Select a concept to steer the model (Click to see more!)",
|
| 201 |
interactive=True,
|
| 202 |
allow_custom_value=False
|
| 203 |
)
|