Spaces:
Running
Running
import gradio as gr | |
# Define your AI model or function here | |
def my_ai_model(input_text): | |
# Your AI logic here (for now it just repeats the input) | |
result = f"You said: {input_text}" | |
return result | |
# Create a Gradio interface | |
interface = gr.Interface( | |
fn=my_ai_model, | |
inputs="text", | |
outputs="text", | |
title="My Simple AI", | |
description="This AI responds to your input!" | |
) | |
# Launch the interface | |
interface.launch() |