Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import time | |
| def generate_code(prompt): | |
| time.sleep(7) # Simulate code generation delay | |
| return f"Generated code for: {prompt}" | |
| iface = gr.Interface(fn=generate_code, | |
| inputs="text", | |
| outputs="text", | |
| title="Gracodest Generation", | |
| description="Enter your prompt and click the button to generate code after 7 seconds.") | |
| iface.launch() | |