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