Spaces:
Running
on
T4
Running
on
T4
Update
Browse files
app.py
CHANGED
@@ -203,12 +203,14 @@ def regenerate_http_bot(state, topk, max_new_tokens, random_seed, request: gr.Re
|
|
203 |
yield (state, state.to_gradio_chatbot(), "", None, None) + (enable_btn,) * 5
|
204 |
|
205 |
title_markdown = ("""
|
206 |
-
# mPLUG-Owl🦉 (GitHub Repo: https://github.com/X-PLUG/mPLUG-Owl)
|
207 |
-
|
|
|
208 |
""")
|
209 |
|
210 |
tos_markdown = ("""
|
211 |
-
**Notice:** The output is generated by top-k sampling scheme and may involve some randomness. For multiple image and video, we cannot ensure it's performance since only image-text pairs are used during training.
|
|
|
212 |
|
213 |
### Terms of use
|
214 |
By using this service, users are required to agree to the following terms:
|
@@ -233,6 +235,8 @@ def build_demo():
|
|
233 |
with gr.Blocks(title="mPLUG-Owl🦉", css=css) as demo:
|
234 |
state = gr.State()
|
235 |
|
|
|
|
|
236 |
gr.Markdown(title_markdown)
|
237 |
|
238 |
with gr.Row():
|
@@ -319,7 +323,7 @@ if __name__ == "__main__":
|
|
319 |
parser.add_argument("--host", type=str, default="0.0.0.0")
|
320 |
parser.add_argument("--debug", action="store_true", help="using debug mode")
|
321 |
parser.add_argument("--port", type=int)
|
322 |
-
parser.add_argument("--concurrency-count", type=int, default=
|
323 |
args = parser.parse_args()
|
324 |
demo = build_demo()
|
325 |
demo.queue(concurrency_count=args.concurrency_count, status_update_rate=10, api_open=False).launch(server_name=args.host, debug=args.debug, server_port=args.port, share=False)
|
|
|
203 |
yield (state, state.to_gradio_chatbot(), "", None, None) + (enable_btn,) * 5
|
204 |
|
205 |
title_markdown = ("""
|
206 |
+
# mPLUG-Owl🦉 (GitHub Repo: https://github.com/X-PLUG/mPLUG-Owl)
|
207 |
+
`<a href="https://github.com/X-PLUG/mPLUG-Owl" class="github-button" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star username/repository on GitHub">Star</a>`
|
208 |
+
## If you like our project, please give us a star ✨ on Github for latest update.
|
209 |
""")
|
210 |
|
211 |
tos_markdown = ("""
|
212 |
+
**Notice:** The output is generated by top-k sampling scheme and may involve some randomness. For multiple image and video, we cannot ensure it's performance since only image-text pairs are used during training. For Video inputs, we recommand use the video **less than 10 seconds**.
|
213 |
+
`<a href="https://github.com/X-PLUG/mPLUG-Owl" class="github-button" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star username/repository on GitHub">Star</a>`
|
214 |
|
215 |
### Terms of use
|
216 |
By using this service, users are required to agree to the following terms:
|
|
|
235 |
with gr.Blocks(title="mPLUG-Owl🦉", css=css) as demo:
|
236 |
state = gr.State()
|
237 |
|
238 |
+
gr.Markdown(SHARED_UI_WARNING)
|
239 |
+
|
240 |
gr.Markdown(title_markdown)
|
241 |
|
242 |
with gr.Row():
|
|
|
323 |
parser.add_argument("--host", type=str, default="0.0.0.0")
|
324 |
parser.add_argument("--debug", action="store_true", help="using debug mode")
|
325 |
parser.add_argument("--port", type=int)
|
326 |
+
parser.add_argument("--concurrency-count", type=int, default=8)
|
327 |
args = parser.parse_args()
|
328 |
demo = build_demo()
|
329 |
demo.queue(concurrency_count=args.concurrency_count, status_update_rate=10, api_open=False).launch(server_name=args.host, debug=args.debug, server_port=args.port, share=False)
|