Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ from model import create_model
|
|
10 |
|
11 |
api_key = st.secrets["API"]
|
12 |
|
|
|
13 |
|
14 |
model,tokenizer = create_model()
|
15 |
# Load existing ideas from a file
|
|
|
10 |
|
11 |
api_key = st.secrets["API"]
|
12 |
|
13 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
14 |
|
15 |
model,tokenizer = create_model()
|
16 |
# Load existing ideas from a file
|