Spaces:
Runtime error
Runtime error
Hritik
commited on
Commit
·
0eaade4
1
Parent(s):
1cb9066
add torch
Browse files
app.py
CHANGED
|
@@ -5,9 +5,9 @@ print(f"Is CUDA available: {torch.cuda.is_available()}")
|
|
| 5 |
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
| 6 |
# Tesla T4
|
| 7 |
|
| 8 |
-
def greet(name):
|
| 9 |
-
|
| 10 |
|
| 11 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 12 |
-
iface.launch()
|
| 13 |
|
|
|
|
| 5 |
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
| 6 |
# Tesla T4
|
| 7 |
|
| 8 |
+
# def greet(name):
|
| 9 |
+
# return "Hello " + name + "!!"
|
| 10 |
|
| 11 |
+
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 12 |
+
# iface.launch()
|
| 13 |
|