hiyouga commited on
Commit
a361ad5
1 Parent(s): b08306d

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import spaces
3
+ import torch
4
+
5
+
6
+ @spaces.GPU
7
+ def greet(n):
8
+ return f"Hello {zero + n} Tensor"
9
+
10
+
11
+ demo = gr.Interface(fn=greet, inputs=gr.Number(), outputs=gr.Text())
12
+ demo.launch()