liujinyao
commited on
Commit
•
fdfae9f
1
Parent(s):
cf05a78
print device count
Browse files- app.py +1 -1
- requirements.txt +1 -1
app.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3 |
import gradio as gr
|
4 |
|
5 |
def greet(name):
|
6 |
-
return torch.
|
7 |
|
8 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
9 |
iface.launch()
|
3 |
import gradio as gr
|
4 |
|
5 |
def greet(name):
|
6 |
+
return torch.cuda.device_count()
|
7 |
|
8 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
9 |
iface.launch()
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
torch==1.0
|
1 |
+
torch==1.4.0
|