Spaces:
Sleeping
Sleeping
Create new_gradio_app.py
Browse files- new_gradio_app.py +11 -0
new_gradio_app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
# Define the new Gradio app function
|
4 |
+
def greet(name):
|
5 |
+
return f"Hello, {name}! You are now in the new Gradio app."
|
6 |
+
|
7 |
+
# Create a new Gradio interface
|
8 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
9 |
+
|
10 |
+
# Launch the new Gradio app
|
11 |
+
iface.launch(server_name="0.0.0.0", server_port=7860)
|