export const hello = `
import gradio as gr
def greet(name):
return "Hello " + name + "!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()
`;
export const chat = `import gradio as gr
def chat(message, history):
pass # Implement your chatbot here...
gr.ChatInterface(fn=chat).launch()
`;
export const stable_diffusion = `import gradio as gr
def generate(prompt):
pass # Implement your image generation model here...
gr.Interface(fn=generate, inputs="prompt", outputs="image").launch()
`;