Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ chat_session = model.start_chat(history=[])
|
|
27 |
|
28 |
|
29 |
def filter_string(input_string):
|
30 |
-
allowed_chars = set("
|
31 |
# Use list comprehension to filter out characters not in allowed_chars
|
32 |
filtered_string = ''.join([char for char in input_string if char in allowed_chars])
|
33 |
return filtered_string
|
|
|
27 |
|
28 |
|
29 |
def filter_string(input_string):
|
30 |
+
allowed_chars = set("abcdefghilmnoprstuvwxyABCDEFGHIJKLMNOPQRSTUVWXY1234567890 ?")
|
31 |
# Use list comprehension to filter out characters not in allowed_chars
|
32 |
filtered_string = ''.join([char for char in input_string if char in allowed_chars])
|
33 |
return filtered_string
|