mkhodary101 commited on
Commit
7d1f745
·
verified ·
1 Parent(s): 645d766

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1,6 +1,7 @@
1
- import torch
2
 
3
- if torch.cuda.is_available():
4
- print(" GPU is available:", torch.cuda.get_device_name(0))
5
- else:
6
- print("❌ No GPU detected!")
 
 
1
+ import gradio as gr
2
 
3
+ def greet(name):
4
+ return "Hello " + name + "!!"
5
+
6
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
+ iface.launch()