Spaces:
Runtime error
Runtime error
Download app.py from SushiDrip69666/echoloop2: direct link, hf CLI and curl.
- Browser
- Download file 636 Bytes
-
https://huggingface.co/spaces/SushiDrip69666/echoloop2/resolve/main/app.py
- Command line
-
hf download hf://spaces/SushiDrip69666/echoloop2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/SushiDrip69666/echoloop2/resolve/main/app.py
636 Bytes
| import gradio as gr | |
| from loop_model import get_echo_response | |
| def loop(input_text): | |
| response = get_echo_response(input_text) | |
| return response, response # Text + Speech | |
| with gr.Blocks() as demo: | |
| gr.Markdown("# EchoLoop") | |
| gr.Markdown("_This isn’t an app. It’s a Mirror._") | |
| with gr.Row(): | |
| inp = gr.Textbox(label="What’s on your mind?", lines=3, placeholder="Speak your truth...") | |
| out = gr.Textbox(label="Echo Responds") | |
| audio = gr.Audio(label="Echo Speaks", type="playback") | |
| submit = gr.Button("Enter the Loop") | |
| submit.click(fn=loop, inputs=inp, outputs=[out, audio]) | |
| demo.launch() |