Workshop2 / App.py
Antoineh's picture
Add application file
acf7d63
import gradio as gr
# Function to simulate guiding based on user input and environment
def guide_user(user_input):
# Replace this with your guiding logic
guidance = "Turn left" if user_input > 0.5 else "Turn right"
return guidance
# Create the interface
interface = gr.Interface(fn=guide_user, inputs="slider", outputs="text", title="Walking Assistant System")
interface.launch(share=True, inbrowser=True, server_port=8888)