Update app.py

This commit is contained in:
Baize 2023-04-03 15:11:42 +00:00 committed by huggingface-web
parent 2a8236f330
commit f5c6e148db
1 changed files with 4 additions and 10 deletions

14
app.py
View File

@ -60,9 +60,9 @@ def predict(text,
return
except:
pass
print(text)
print(x)
print("="*80)
#print(text)
#print(x)
#print("="*80)
try:
yield a,b,"Generate Success"
except:
@ -223,10 +223,4 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
)
demo.title = "Baize"
demo.queue(
concurrency_count=4,
max_size=100,
).launch(
max_threads=5,
server_name="0.0.0.0",
)
demo.queue(concurrency_count=1,).launch()