Textwizai / app.py
Erfan11's picture
Upload 2 files
40874f0 verified
raw
history blame
No virus
442 Bytes
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()