Spaces:
Sleeping
Sleeping
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() | |