lemonteaa commited on
Commit
5472480
·
verified ·
1 Parent(s): ae7ce37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
3
  import subprocess
4
  import tempfile
5
 
 
6
 
7
  def runCAS(src_str):
8
  with tempfile.NamedTemporaryFile(mode="w", suffix=".sage") as tmp:
@@ -33,4 +34,6 @@ demo = gr.Interface(fn=runCAS,
33
  inputs="textarea",
34
  outputs="textarea",
35
  examples=my_examples)
36
- demo.queue().launch()
 
 
 
3
  import subprocess
4
  import tempfile
5
 
6
+ print("Begin app")
7
 
8
  def runCAS(src_str):
9
  with tempfile.NamedTemporaryFile(mode="w", suffix=".sage") as tmp:
 
34
  inputs="textarea",
35
  outputs="textarea",
36
  examples=my_examples)
37
+ demo.queue(max_size=20)
38
+ demo.launch()
39
+