testapp / app.py
thamada's picture
Rename hello.py to app.py
5f401a6 verified
raw
history blame
311 Bytes
import gspread
import gradio as gr
# Define a function that takes an input and returns some output
def greet(name):
return f"Hello, {name}!"
# Create an interface for the function
iface = gr.Interface(fn=greet, inputs="text", outputs="text", title="Greeting App")
# Launch the interface
iface.launch()