logu29's picture
Create app.py
90ada29 verified
raw
history blame
245 Bytes
# 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)