Tiago Caldeira
commited on
Commit
·
41479d7
1
Parent(s):
3d582fc
different approach using unsloth model
Browse files- app.py +5 -1
- requirements.txt +3 -3
app.py
CHANGED
|
@@ -58,5 +58,9 @@ demo = gr.Interface(
|
|
| 58 |
gr.Textbox(lines=4, label="User Prompt", placeholder="Ask something..."),
|
| 59 |
],
|
| 60 |
outputs=gr.Textbox(label="Gemma 3n Response"),
|
| 61 |
-
title="Gemma 3n Chat (CPU-friendly
|
|
|
|
|
|
|
| 62 |
|
|
|
|
|
|
|
|
|
| 58 |
gr.Textbox(lines=4, label="User Prompt", placeholder="Ask something..."),
|
| 59 |
],
|
| 60 |
outputs=gr.Textbox(label="Gemma 3n Response"),
|
| 61 |
+
title="Gemma 3n Chat (CPU-friendly)",
|
| 62 |
+
description="Lightweight CPU-only chatbot using a quantized Gemma 3n model.",
|
| 63 |
+
)
|
| 64 |
|
| 65 |
+
if __name__ == "__main__":
|
| 66 |
+
demo.launch()
|
requirements.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
gradio
|
| 4 |
#accelerate
|
| 5 |
timm
|
| 6 |
#bitsandbytes
|
| 7 |
-
unsloth
|
|
|
|
| 1 |
+
transformers
|
| 2 |
+
torch
|
| 3 |
gradio
|
| 4 |
#accelerate
|
| 5 |
timm
|
| 6 |
#bitsandbytes
|
| 7 |
+
#unsloth
|