Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -139,7 +139,11 @@ if uploaded_file is not None:
|
|
| 139 |
parsed_query = ask_gpt(f"Convert this question into a structured data operation: {query}")
|
| 140 |
|
| 141 |
# Validate and clean query
|
| 142 |
-
parsed_query = re.sub(r"[^a-zA-Z0-9_()\[\]"'., ]", "", parsed_query.strip())
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
st.write(f"Parsed Query: `{parsed_query}`")
|
| 144 |
|
| 145 |
# Predefined Safe Execution Methods
|
|
|
|
| 139 |
parsed_query = ask_gpt(f"Convert this question into a structured data operation: {query}")
|
| 140 |
|
| 141 |
# Validate and clean query
|
| 142 |
+
#parsed_query = re.sub(r"[^a-zA-Z0-9_()\[\]"'., ]", "", parsed_query.strip())
|
| 143 |
+
parsed_query = re.sub(r"[^a-zA-Z0-9_()\[\]\'., ]", "", parsed_query.strip())
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
|
| 147 |
st.write(f"Parsed Query: `{parsed_query}`")
|
| 148 |
|
| 149 |
# Predefined Safe Execution Methods
|