brian-yu-nexusflow commited on
Commit
a7316fd
β€’
1 Parent(s): 989d2f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -304,7 +304,7 @@ class RavenDemo(gr.Blocks):
304
  steps = [gr.Textbox(value="", visible=False) for _ in range(self.max_num_steps)]
305
  yield get_returns()
306
 
307
- raven_prompt = self.functions_helper.get_prompt(query)
308
  print(f"{'-' * 80}\nPrompt sent to Raven\n\n{raven_prompt}\n\n{'-' * 80}\n")
309
  stream = self.raven_client.text_generation(
310
  raven_prompt, **RAVEN_GENERATION_KWARGS
 
304
  steps = [gr.Textbox(value="", visible=False) for _ in range(self.max_num_steps)]
305
  yield get_returns()
306
 
307
+ raven_prompt = self.functions_helper.get_prompt(query.replace("'", r"\'").replace('"', r'\"'))
308
  print(f"{'-' * 80}\nPrompt sent to Raven\n\n{raven_prompt}\n\n{'-' * 80}\n")
309
  stream = self.raven_client.text_generation(
310
  raven_prompt, **RAVEN_GENERATION_KWARGS