Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|
|
|
|
|
|
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 |
+
|