Update app.py
This commit is contained in:
parent
2a8236f330
commit
f5c6e148db
14
app.py
14
app.py
|
@ -60,9 +60,9 @@ def predict(text,
|
||||||
return
|
return
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
print(text)
|
#print(text)
|
||||||
print(x)
|
#print(x)
|
||||||
print("="*80)
|
#print("="*80)
|
||||||
try:
|
try:
|
||||||
yield a,b,"Generate Success"
|
yield a,b,"Generate Success"
|
||||||
except:
|
except:
|
||||||
|
@ -223,10 +223,4 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
||||||
)
|
)
|
||||||
demo.title = "Baize"
|
demo.title = "Baize"
|
||||||
|
|
||||||
demo.queue(
|
demo.queue(concurrency_count=1,).launch()
|
||||||
concurrency_count=4,
|
|
||||||
max_size=100,
|
|
||||||
).launch(
|
|
||||||
max_threads=5,
|
|
||||||
server_name="0.0.0.0",
|
|
||||||
)
|
|
Loading…
Reference in New Issue