import gradio as gr def is_palindrome(word): word = word.lower().replace(" ", "") return "Ja, ist ein Palindrom!" if word == word[::-1] else "Nein, ist kein Palindrom." iface = gr.Interface( fn=is_palindrome, inputs=gr.Textbox(label="Geben Sie ein Wort ein"), outputs=gr.Textbox(label="Ergebnis"), title="Palindrom-Checker", description="Geben Sie ein Wort ein, um zu prüfen, ob es ein Palindrom ist." ) iface .launch()