xcx0902 commited on
Commit
03625ad
·
verified ·
1 Parent(s): 213bfb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ class PersistentRunner:
22
  runner = PersistentRunner()
23
 
24
  def run(code):
25
- return runner.run(code)
26
 
27
  demo = gr.Interface(fn=run, inputs="text", outputs="text")
28
  demo.launch()
 
22
  runner = PersistentRunner()
23
 
24
  def run(code):
25
+ return runner.run(code.replace("\\n", "\n"))
26
 
27
  demo = gr.Interface(fn=run, inputs="text", outputs="text")
28
  demo.launch()