Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
|
|
|
| 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()
|