Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,19 +16,15 @@ HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
|
| 16 |
MODEL_ID = os.environ.get("MODEL_ID")
|
| 17 |
MODEL_NAME = MODEL_ID.split("/")[-1]
|
| 18 |
|
| 19 |
-
TITLE = "<h1>Multimodal
|
| 20 |
|
| 21 |
DESCRIPTION = f"""
|
| 22 |
<center>
|
| 23 |
-
<p>π A
|
| 24 |
<br>
|
| 25 |
π MODEL NOW: <a href="https://hf.co/{MODEL_ID}">{MODEL_NAME}</a>
|
| 26 |
<br>
|
| 27 |
-
β¨
|
| 28 |
-
<br>
|
| 29 |
-
β¨ Tips: Please increase MAX LENGTH when deal with file.
|
| 30 |
-
<br>
|
| 31 |
-
π€ Supported Format: pdf, txt, docx, pptx, md, png, jpg, webp
|
| 32 |
<br>
|
| 33 |
πββοΈ May be rebuilding from time to time.</p>
|
| 34 |
</center>"""
|
|
@@ -168,7 +164,7 @@ chat_input = gr.MultimodalTextbox(
|
|
| 168 |
|
| 169 |
)
|
| 170 |
EXAMPLES = [
|
| 171 |
-
[{"text": "Describe it in detailed", "files": ["./
|
| 172 |
[{"text": "Where it is?", "files": ["./hotel.jpg"]}],
|
| 173 |
[{"text": "Is it real?", "files": ["./spacecat.png"]}]
|
| 174 |
]
|
|
|
|
| 16 |
MODEL_ID = os.environ.get("MODEL_ID")
|
| 17 |
MODEL_NAME = MODEL_ID.split("/")[-1]
|
| 18 |
|
| 19 |
+
TITLE = "<h1>Multimodal Model for Complex Doc Extraction</h1>"
|
| 20 |
|
| 21 |
DESCRIPTION = f"""
|
| 22 |
<center>
|
| 23 |
+
<p>π A Demo For Complex Doc Extraction via GLM4.
|
| 24 |
<br>
|
| 25 |
π MODEL NOW: <a href="https://hf.co/{MODEL_ID}">{MODEL_NAME}</a>
|
| 26 |
<br>
|
| 27 |
+
β¨ Important: Do not upload any sensitive documents.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
<br>
|
| 29 |
πββοΈ May be rebuilding from time to time.</p>
|
| 30 |
</center>"""
|
|
|
|
| 164 |
|
| 165 |
)
|
| 166 |
EXAMPLES = [
|
| 167 |
+
[{"text": "Describe it in detailed", "files": ["./IMG_2700.png"]}],
|
| 168 |
[{"text": "Where it is?", "files": ["./hotel.jpg"]}],
|
| 169 |
[{"text": "Is it real?", "files": ["./spacecat.png"]}]
|
| 170 |
]
|