Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
for text in generated_texts:
|
| 5 |
print(text)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import torch
|
| 3 |
+
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
| 4 |
+
# True
|
| 5 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
| 6 |
+
# Tesla T4
|
| 7 |
|
| 8 |
for text in generated_texts:
|
| 9 |
print(text)
|