barflyman commited on
Commit
c3983c2
·
verified ·
1 Parent(s): 2b535e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -1,15 +1,15 @@
1
- import gradio as gr
2
-
3
- def is_palindrome(word):
4
- word = word.lower().replace(" ", "")
5
- return "Ja, ist ein Palindrom!" if word == word[::-1] else "Nein, ist kein Palindrom."
6
-
7
- iface = gr.Interface(
8
- fn=is_palindrome,
9
- inputs=gr.Textbox(label="Geben Sie ein Wort ein"),
10
- outputs=gr.Textbox(label="Ergebnis"),
11
- title="Palindrom-Checker",
12
- description="Geben Sie ein Wort ein, um zu prüfen, ob es ein Palindrom ist."
13
- )
14
-
15
- iface .launch()
 
1
+ import gradio as gr
2
+
3
+ def is_palindrome(word):
4
+ word = word.lower().replace(" ", "")
5
+ return "Ja, ist ein Palindrom!" if word == word[::-1] else "Nein, ist kein Palindrom."
6
+
7
+ iface = gr.Interface(
8
+ fn=is_palindrome,
9
+ inputs=gr.Textbox(label="Geben Sie ein Wort ein"),
10
+ outputs=gr.Textbox(label="Ergebnis"),
11
+ title="Palindrom-Checker",
12
+ description="Geben Sie ein Wort ein, um zu prüfen, ob es ein Palindrom ist."
13
+ )
14
+
15
+ iface .launch()