Mo-alaa commited on
Commit
2a0aac7
·
verified ·
1 Parent(s): a79466d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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