MaxLSB commited on
Commit
1dc8ea5
·
verified ·
1 Parent(s): eaff982

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -64,7 +64,7 @@ def respond(
64
 
65
 
66
  with gr.Blocks(css=".gr-chatbox {height: 600px !important;}") as demo:
67
- gr.Markdown("## LeCarnet: Short French Stories")
68
 
69
  with gr.Row():
70
  with gr.Column(scale=4):
@@ -73,8 +73,6 @@ with gr.Blocks(css=".gr-chatbox {height: 600px !important;}") as demo:
73
  chat = gr.ChatInterface(
74
  fn=respond,
75
  additional_inputs=[],
76
- title="LeCarnet Chat",
77
- description="Type the beginning of a sentence and watch the model finish it.",
78
  examples=[
79
  ["Il était une fois un petit garçon qui vivait dans un village paisible."],
80
  ["Il était une fois une grenouille qui rêvait de toucher les étoiles chaque nuit depuis son étang."],
@@ -102,5 +100,4 @@ with gr.Blocks(css=".gr-chatbox {height: 600px !important;}") as demo:
102
  """)
103
 
104
  if __name__ == "__main__":
105
- demo.queue()
106
- demo.launch()
 
64
 
65
 
66
  with gr.Blocks(css=".gr-chatbox {height: 600px !important;}") as demo:
67
+ gr.Markdown("## LeCarnet")
68
 
69
  with gr.Row():
70
  with gr.Column(scale=4):
 
73
  chat = gr.ChatInterface(
74
  fn=respond,
75
  additional_inputs=[],
 
 
76
  examples=[
77
  ["Il était une fois un petit garçon qui vivait dans un village paisible."],
78
  ["Il était une fois une grenouille qui rêvait de toucher les étoiles chaque nuit depuis son étang."],
 
100
  """)
101
 
102
  if __name__ == "__main__":
103
+ demo.queue(default_concurrency_limit=10,max_size=10).launch(ssr_mode=False, max_threads=10)