Spaces:
Sleeping
Sleeping
File size: 401 Bytes
a3da093 8720727 6774ad7 a02e694 6774ad7 8720727 03cfcc4 a02e694 fc167e4 a3da093 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import gradio as gr
import json
from io import StringIO
import os
def getDataFromGrasshopper(
inputJson
):
if inputJson is not None:
return str(inputJson)
return ""
demo = gr.Interface(
fn=getDataFromGrasshopper,
inputs=gr.Textbox(), # Use a valid Gradio input component
outputs=gr.Textbox() # Use a valid Gradio output component
)
demo.launch()
|