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