Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
# main.py
|
2 |
import gradio as gr
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
4 |
-
|
5 |
# Load model and tokenizer
|
6 |
model_name = "meta-llama/Llama-2-7b-chat-hf"
|
7 |
print("started loading model")
|
|
|
1 |
# main.py
|
2 |
import gradio as gr
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
4 |
+
import torch
|
5 |
# Load model and tokenizer
|
6 |
model_name = "meta-llama/Llama-2-7b-chat-hf"
|
7 |
print("started loading model")
|