Spaces:
Build error
Build error
# In Colab | |
code = ''' | |
import gradio as gr | |
def greet(name): | |
return "Hello " + name + "!" | |
iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
iface.launch() | |
''' | |
# Save it as app.py | |
with open("app.py", "w") as f: | |
f.write(code) | |