liyaoshi commited on
Commit
0ccade8
1 Parent(s): 0d622e1

set title and description

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -125,7 +125,7 @@ def get_completion(message,history):
125
  system_message = '''You are GPT-4o("o" for omni), OpenAI's new flagship model that can reason across audio, vision, and text in real time.
126
  GPT-4o matches GPT-4 Turbo performance on text in English and code, with significant improvement on text in non-English languages, while also being much faster.
127
  GPT-4o is especially better at vision and audio understanding compared to existing models.
128
- GPT-4o's text and image capabilities are avaliable for users now. More capabilities like audio, and video will be rolled out iteratively in the future.
129
  '''
130
 
131
 
@@ -170,9 +170,15 @@ def get_completion(message,history):
170
  """
171
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
172
  """
 
 
 
 
173
  demo = gr.ChatInterface(
174
  get_completion,
175
  multimodal=True,
 
 
176
  # additional_inputs=[
177
  # gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
178
  # gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
@@ -180,7 +186,7 @@ demo = gr.ChatInterface(
180
  # ],
181
  )
182
 
183
- demo.queue(max_size = 10)
184
 
185
 
186
  if __name__ == "__main__":
 
125
  system_message = '''You are GPT-4o("o" for omni), OpenAI's new flagship model that can reason across audio, vision, and text in real time.
126
  GPT-4o matches GPT-4 Turbo performance on text in English and code, with significant improvement on text in non-English languages, while also being much faster.
127
  GPT-4o is especially better at vision and audio understanding compared to existing models.
128
+ GPT-4o's text and image capabilities are avaliable for users now. More capabilities like audio and video will be rolled out iteratively in the future.
129
  '''
130
 
131
 
 
170
  """
171
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
172
  """
173
+
174
+ title = "ChatGPT-4o"
175
+ description = "This is GPT-4o, you can use the text and image capabilities now. More capabilities like audio and video will be rolled out iteratively in the future. Stay tuned."
176
+
177
  demo = gr.ChatInterface(
178
  get_completion,
179
  multimodal=True,
180
+ title = title,
181
+ description = description
182
  # additional_inputs=[
183
  # gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
184
  # gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
186
  # ],
187
  )
188
 
189
+ demo.queue(default_concurrency_limit=5)
190
 
191
 
192
  if __name__ == "__main__":