Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -95,14 +95,15 @@ def generate(
|
|
95 |
|
96 |
|
97 |
examples = [
|
98 |
-
"
|
99 |
-
"
|
100 |
-
"
|
101 |
-
"
|
102 |
-
"
|
103 |
]
|
104 |
|
105 |
|
|
|
106 |
def process_example(args):
|
107 |
for x in generate(args):
|
108 |
pass
|
|
|
95 |
|
96 |
|
97 |
examples = [
|
98 |
+
"SELECT Name, Email, PurchaseDate\nFROM Customers\nWHERE PurchaseDate >= '2023-01-01'\nORDER BY PurchaseDate DESC;",
|
99 |
+
"<!DOCTYPE html>\n<html>\n<head>\n <title>Kontaktiere Uns</title>\n</head>\n<body>\n <h1>Kontaktformular</h1>\n <form action=\"/sendEmail\" method=\"post\">\n Name: <input type=\"text\" name=\"name\"><br>\n E-Mail: <input type=\"text\" name=\"email\"><br>\n Nachricht:<br>\n <textarea name=\"message\" rows=\"5\" cols=\"30\"></textarea><br>\n <input type=\"submit\" value=\"Senden\">\n </form>\n</body>\n</html>",
|
100 |
+
"def calculate_bmi(height, weight):\n bmi = weight / (height / 100) ** 2\n return bmi\n\nprint(calculate_bmi(170, 65)) # Beispielaufruf",
|
101 |
+
"function sumArray(array) {\n return array.reduce((sum, num) => sum + num, 0);\n}\n\nconsole.log(sumArray([1, 2, 3, 4, 5])); // Gibt 15 aus",
|
102 |
+
".button {\n background-color: blue;\n color: white;\n padding: 10px 20px;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n}\n\n.button:hover {\n box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);\n}"
|
103 |
]
|
104 |
|
105 |
|
106 |
+
|
107 |
def process_example(args):
|
108 |
for x in generate(args):
|
109 |
pass
|