Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,9 @@ import gradio as gr
|
|
5 |
from llama_index.readers.file import PDFReader
|
6 |
|
7 |
### added to remove openapi
|
8 |
-
from transformers import AutoModelForCausalLM
|
9 |
|
|
|
|
|
10 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
11 |
model_name = "baffo32/decapoda-research-llama-7B-hf"
|
12 |
model = AutoModelForCausalLM.from_pretrained(model_name).to(device)
|
|
|
5 |
from llama_index.readers.file import PDFReader
|
6 |
|
7 |
### added to remove openapi
|
|
|
8 |
|
9 |
+
from transformers import AutoModelForCausalLM
|
10 |
+
import torch
|
11 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
12 |
model_name = "baffo32/decapoda-research-llama-7B-hf"
|
13 |
model = AutoModelForCausalLM.from_pretrained(model_name).to(device)
|