bharatcoder commited on
Commit
e328371
·
verified ·
1 Parent(s): a8f4a29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -41,9 +41,10 @@ end_time = time.time()
41
  print(f"Time taken for matrix multiplication with PyTorch: {end_time - start_time:.6f} seconds")
42
 
43
  @spaces.GPU
44
- def zeroGPU_test(n):
45
  print(zero.device) # <-- 'cuda:0' 🤗
46
-
 
47
 
48
- demo = gr.Interface()
49
  demo.launch()
 
41
  print(f"Time taken for matrix multiplication with PyTorch: {end_time - start_time:.6f} seconds")
42
 
43
  @spaces.GPU
44
+ def zeroGPU_test(text):
45
  print(zero.device) # <-- 'cuda:0' 🤗
46
+ return f"Hello: {text}"
47
+
48
 
49
+ demo = gr.Interface(fn=greet, inputs=gr.Text(), outputs=gr.Text())
50
  demo.launch()