Spaces:
Sleeping
Sleeping
Update: Adjust Text
Browse files
app.py
CHANGED
|
@@ -173,9 +173,9 @@ def replace_text():
|
|
| 173 |
|
| 174 |
def get_device_info():
|
| 175 |
if torch.cuda.is_available():
|
| 176 |
-
return f"Runs on GPU: {torch.cuda.get_device_name(0)}"
|
| 177 |
else:
|
| 178 |
-
return "Runs on CPU (May be
|
| 179 |
|
| 180 |
### Create Form interface with Gradio Framework ##################################
|
| 181 |
with gr.Blocks() as demo:
|
|
|
|
| 173 |
|
| 174 |
def get_device_info():
|
| 175 |
if torch.cuda.is_available():
|
| 176 |
+
return f"◉ Runs on GPU: {torch.cuda.get_device_name(0)}"
|
| 177 |
else:
|
| 178 |
+
return "◎ Runs on CPU (May be slow)"
|
| 179 |
|
| 180 |
### Create Form interface with Gradio Framework ##################################
|
| 181 |
with gr.Blocks() as demo:
|