Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
3 |
import torch
|
4 |
|
5 |
# Load the model and tokenizer from Hugging Face
|
6 |
-
model_path = "Ozaii/Wali-8B-Uncensored
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
8 |
bnb_config = BitsAndBytesConfig(
|
9 |
load_in_4bit=True,
|
@@ -92,4 +92,4 @@ with gr.Blocks() as chat_interface:
|
|
92 |
outputs=[chatbox, chat_history]
|
93 |
)
|
94 |
|
95 |
-
chat_interface.launch()
|
|
|
3 |
import torch
|
4 |
|
5 |
# Load the model and tokenizer from Hugging Face
|
6 |
+
model_path = "Ozaii/Wali-8B-Uncensored" # Replace with your model path
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
8 |
bnb_config = BitsAndBytesConfig(
|
9 |
load_in_4bit=True,
|
|
|
92 |
outputs=[chatbox, chat_history]
|
93 |
)
|
94 |
|
95 |
+
chat_interface.launch()
|