Spaces:
Sleeping
Sleeping
Commit
•
0f6346b
1
Parent(s):
9c2e6cb
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio
|
2 |
+
import torch
|
3 |
+
|
4 |
+
def hello(inp):
|
5 |
+
data = [[1, 2],[3, 4]]
|
6 |
+
x_data = torch.tensor(data)
|
7 |
+
return "Hello {}!".format(inp)
|
8 |
+
|
9 |
+
io = gradio.Interface(fn=hello, inputs='text', outputs='text')
|
10 |
+
io.launch()
|