openai_gradio_app_agent / new_gradio_app.py
nakas's picture
Create new_gradio_app.py
9877cf2 verified
raw
history blame contribute delete
316 Bytes
import gradio as gr
# Define the new Gradio app function
def greet(name):
return f"Hello, {name}! You are now in the new Gradio app."
# Create a new Gradio interface
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
# Launch the new Gradio app
iface.launch(server_name="0.0.0.0", server_port=7860)