garyd1 commited on
Commit
7db106f
·
verified ·
1 Parent(s): a141be1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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