Update hello.py
Browse files
hello.py
CHANGED
@@ -1,2 +1,14 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
|
|
1 |
+
import gspread
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
# Define a function that takes an input and returns some output
|
5 |
+
def greet(name):
|
6 |
+
return f"Hello, {name}!"
|
7 |
+
|
8 |
+
# Create an interface for the function
|
9 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text", title="Greeting App")
|
10 |
+
|
11 |
+
# Launch the interface
|
12 |
+
iface.launch()
|
13 |
+
|
14 |
|