Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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()
|