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 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",
)