Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,9 @@ import pytesseract
|
|
| 5 |
# Initialize chat model (You can change the model here)
|
| 6 |
chat_model = pipeline("text-generation", model="gpt2") # You can switch to any model of your choice
|
| 7 |
|
|
|
|
|
|
|
|
|
|
| 8 |
# Initialize LLaMA model for more advanced instruction-following tasks
|
| 9 |
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.3-70B-Instruct")
|
| 10 |
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.3-70B-Instruct")
|
|
|
|
| 5 |
# Initialize chat model (You can change the model here)
|
| 6 |
chat_model = pipeline("text-generation", model="gpt2") # You can switch to any model of your choice
|
| 7 |
|
| 8 |
+
|
| 9 |
+
gr.load("models/meta-llama/Llama-3.3-70B-Instruct").launch()
|
| 10 |
+
|
| 11 |
# Initialize LLaMA model for more advanced instruction-following tasks
|
| 12 |
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.3-70B-Instruct")
|
| 13 |
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.3-70B-Instruct")
|