Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,27 +5,16 @@ import os
|
|
5 |
|
6 |
|
7 |
|
8 |
-
|
9 |
-
|
10 |
def getDataFromGrasshopper(
|
11 |
inputJson
|
12 |
):
|
13 |
if inputJson is not None:
|
14 |
-
return
|
15 |
return ""
|
16 |
|
17 |
|
18 |
-
getDataFromGrasshopper
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
|
26 |
|
27 |
-
def greet(name):
|
28 |
-
return "Hello " + name + "!!"
|
29 |
|
30 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
31 |
-
demo.launch()
|
|
|
5 |
|
6 |
|
7 |
|
|
|
|
|
8 |
def getDataFromGrasshopper(
|
9 |
inputJson
|
10 |
):
|
11 |
if inputJson is not None:
|
12 |
+
return str(inputJson)
|
13 |
return ""
|
14 |
|
15 |
|
16 |
+
demo = gr.Interface(fn=getDataFromGrasshopper, inputs, outputs)
|
17 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
|
|
|
|
|
20 |
|
|
|
|