Spaces:
Runtime error
Runtime error
brian-yu-nexusflow
commited on
Commit
β’
a7316fd
1
Parent(s):
989d2f2
Update app.py
Browse files
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
|