Spaces:
Running
on
Zero
Running
on
Zero
Better presentation
Browse files
main.py
CHANGED
@@ -121,7 +121,7 @@ chat_bot = gr.Chatbot(
|
|
121 |
)
|
122 |
|
123 |
|
124 |
-
with gr.Blocks(js=JS) as demo:
|
125 |
reasoning = gr.Markdown(
|
126 |
"# Reasoning\n\nWhen the model will reasoning, its thoughts will be displayed here.",
|
127 |
label="Reasoning",
|
@@ -129,9 +129,8 @@ with gr.Blocks(js=JS) as demo:
|
|
129 |
container=True,
|
130 |
elem_classes="auto-scroll",
|
131 |
render=False,
|
132 |
-
height="80vh",
|
133 |
)
|
134 |
-
with gr.Row(equal_height=True):
|
135 |
with gr.Column(scale=3):
|
136 |
gr.ChatInterface(
|
137 |
chat,
|
@@ -149,7 +148,7 @@ with gr.Blocks(js=JS) as demo:
|
|
149 |
additional_outputs=[reasoning],
|
150 |
)
|
151 |
|
152 |
-
with gr.Column():
|
153 |
reasoning.render()
|
154 |
gr.Markdown(
|
155 |
"\n\n"
|
@@ -160,7 +159,7 @@ with gr.Blocks(js=JS) as demo:
|
|
160 |
"See [The model page](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B) "
|
161 |
"for more information.",
|
162 |
container=True,
|
163 |
-
max_height="
|
164 |
)
|
165 |
|
166 |
|
|
|
121 |
)
|
122 |
|
123 |
|
124 |
+
with gr.Blocks(js=JS, fill_height=True, title="Reasoning model example") as demo:
|
125 |
reasoning = gr.Markdown(
|
126 |
"# Reasoning\n\nWhen the model will reasoning, its thoughts will be displayed here.",
|
127 |
label="Reasoning",
|
|
|
129 |
container=True,
|
130 |
elem_classes="auto-scroll",
|
131 |
render=False,
|
|
|
132 |
)
|
133 |
+
with gr.Row(equal_height=True, height="90vh"):
|
134 |
with gr.Column(scale=3):
|
135 |
gr.ChatInterface(
|
136 |
chat,
|
|
|
148 |
additional_outputs=[reasoning],
|
149 |
)
|
150 |
|
151 |
+
with gr.Column(variant="compact", scale=1):
|
152 |
reasoning.render()
|
153 |
gr.Markdown(
|
154 |
"\n\n"
|
|
|
159 |
"See [The model page](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B) "
|
160 |
"for more information.",
|
161 |
container=True,
|
162 |
+
max_height="20%",
|
163 |
)
|
164 |
|
165 |
|