quypn's picture
Create ultra-simple text-only interface with minimal dependencies
8faf16d verified
Raw
History Blame Contribute Delete
427 Bytes
import gradio as gr
def generate_text(prompt):
return f"Generated text based on: {prompt}. This is a simple demonstration of the Multi-Modal Content Generator!"
# Create the simplest possible interface
demo = gr.Interface(
fn=generate_text,
inputs="text",
outputs="text",
title="Multi-Modal Content Generator",
description="Generate text from a prompt"
)
if __name__ == "__main__":
demo.launch()