awacke1 commited on
Commit
dd4a91a
·
verified ·
1 Parent(s): 3130701

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,7 +124,7 @@ def SaveResponseAndRead(result):
124
 
125
  def save_search_results(prompt, results, response):
126
  timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
127
- filename = f"{timestamp}_{re.sub(r'[^\w\-_\. ]', '_', prompt)}.txt"
128
  with open(filename, "w") as f:
129
  f.write(f"# {prompt}\n\n")
130
  f.write(f"## Search Results\n\n{results}\n\n")
 
124
 
125
  def save_search_results(prompt, results, response):
126
  timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
127
+ filename = f"{timestamp}_{re.sub(r'[^\\w\\-_\\. ]', '_', prompt)}.txt"
128
  with open(filename, "w") as f:
129
  f.write(f"# {prompt}\n\n")
130
  f.write(f"## Search Results\n\n{results}\n\n")