Spaces:
Running
on
T4
Running
on
T4
Update
Browse files
app.py
CHANGED
@@ -41,13 +41,13 @@ from gradio_css import code_highlight_css
|
|
41 |
from gradio_patch import Chatbot as grChatbot
|
42 |
from conversation import default_conversation
|
43 |
|
44 |
-
SHARED_UI_WARNING = f'''### [NOTE]
|
45 |
-
|
46 |
-
<a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/MAGAer13/mPLUG-Owl?duplicate=true"><img style="margin-top:0;margin-bottom:0" src="https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-xl-dark.svg" alt="Duplicate Space"></a>
|
47 |
-
Alternatively, you can also use the Colab demo on our project page.
|
48 |
-
<a style="display:inline-block" href="https://https://github.com/X-PLUG/mPLUG-Owl"><img style="margin-top:0;margin-bottom:0" src="https://img.shields.io/badge/Project%20Page-online-brightgreen"></a>
|
49 |
'''
|
50 |
|
|
|
|
|
|
|
51 |
io = None
|
52 |
init()
|
53 |
model = mplug_owl(device="cuda")
|
@@ -204,13 +204,12 @@ def regenerate_http_bot(state, topk, max_new_tokens, random_seed, request: gr.Re
|
|
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:
|
|
|
41 |
from gradio_patch import Chatbot as grChatbot
|
42 |
from conversation import default_conversation
|
43 |
|
44 |
+
SHARED_UI_WARNING = f'''### [NOTE] You can duplicate and use it with a paid private GPU.
|
45 |
+
<a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/MAGAer13/mPLUG-Owl?duplicate=true"><img style="margin-top:0;margin-bottom:0" src="https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-md.svg" alt="Duplicate Space"></a>
|
|
|
|
|
|
|
46 |
'''
|
47 |
|
48 |
+
# Alternatively, you can also use the Colab demo on our project page.
|
49 |
+
# <a style="display:inline-block" href="https://https://github.com/X-PLUG/mPLUG-Owl"><img style="margin-top:0;margin-bottom:0" src="https://img.shields.io/badge/Project%20Page-online-brightgreen"></a>
|
50 |
+
|
51 |
io = None
|
52 |
init()
|
53 |
model = mplug_owl(device="cuda")
|
|
|
204 |
|
205 |
title_markdown = ("""
|
206 |
# mPLUG-Owl🦉 (GitHub Repo: https://github.com/X-PLUG/mPLUG-Owl)
|
|
|
207 |
## If you like our project, please give us a star ✨ on Github for latest update.
|
208 |
+
[![Star on GitHub](https://img.shields.io/github/stars/jonsn0w/hyde.svg?style=social)](https://github.com/jonsn0w/hyde/stargazers)
|
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 |
|
214 |
### Terms of use
|
215 |
By using this service, users are required to agree to the following terms:
|