File size: 442 Bytes
40874f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()