Spaces:
Sleeping
Sleeping
gradio 6.2
Browse files- app.py +3 -2
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -199,7 +199,7 @@ custom_theme = gr.themes.Soft(
|
|
| 199 |
)
|
| 200 |
|
| 201 |
# Build the Gradio interface
|
| 202 |
-
with gr.Blocks(
|
| 203 |
gr.Markdown(
|
| 204 |
"""
|
| 205 |
# 🤖 Smol LLM Chat - Multi-turn chat with SmolLM2-135M.
|
|
@@ -247,7 +247,6 @@ with gr.Blocks(theme=custom_theme, css=css, fill_height=True) as demo:
|
|
| 247 |
# Chat Interface
|
| 248 |
chat_interface = gr.ChatInterface(
|
| 249 |
fn=chat_predict,
|
| 250 |
-
type="messages",
|
| 251 |
fill_height=True,
|
| 252 |
additional_inputs=[
|
| 253 |
max_tokens,
|
|
@@ -265,6 +264,8 @@ print(f"Startup load status: {load_status}")
|
|
| 265 |
if __name__ == "__main__":
|
| 266 |
# Launch the application
|
| 267 |
demo.launch(
|
|
|
|
|
|
|
| 268 |
share=False,
|
| 269 |
show_error=True
|
| 270 |
)
|
|
|
|
| 199 |
)
|
| 200 |
|
| 201 |
# Build the Gradio interface
|
| 202 |
+
with gr.Blocks(fill_height=True) as demo:
|
| 203 |
gr.Markdown(
|
| 204 |
"""
|
| 205 |
# 🤖 Smol LLM Chat - Multi-turn chat with SmolLM2-135M.
|
|
|
|
| 247 |
# Chat Interface
|
| 248 |
chat_interface = gr.ChatInterface(
|
| 249 |
fn=chat_predict,
|
|
|
|
| 250 |
fill_height=True,
|
| 251 |
additional_inputs=[
|
| 252 |
max_tokens,
|
|
|
|
| 264 |
if __name__ == "__main__":
|
| 265 |
# Launch the application
|
| 266 |
demo.launch(
|
| 267 |
+
theme=custom_theme,
|
| 268 |
+
css=css,
|
| 269 |
share=False,
|
| 270 |
show_error=True
|
| 271 |
)
|
requirements.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
accelerate
|
| 2 |
bitsandbytes
|
| 3 |
fsspec==2025.10.0
|
| 4 |
-
gradio
|
| 5 |
psutil
|
| 6 |
py-cpuinfo
|
| 7 |
pydantic
|
|
|
|
| 1 |
accelerate
|
| 2 |
bitsandbytes
|
| 3 |
fsspec==2025.10.0
|
| 4 |
+
gradio==6.2.0
|
| 5 |
psutil
|
| 6 |
py-cpuinfo
|
| 7 |
pydantic
|