Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def init():
|
|
39 |
print("The model is on a CPU")
|
40 |
|
41 |
print(f"text_generator.device='{text_generator.device}")
|
42 |
-
if text_generator.device == 'cuda':
|
43 |
print("The pipeline is using a GPU")
|
44 |
else:
|
45 |
print("The pipeline is using a CPU")
|
|
|
39 |
print("The model is on a CPU")
|
40 |
|
41 |
print(f"text_generator.device='{text_generator.device}")
|
42 |
+
if text_generator.device.strip() == 'cuda':
|
43 |
print("The pipeline is using a GPU")
|
44 |
else:
|
45 |
print("The pipeline is using a CPU")
|