Jimhugging commited on
Commit
a0c9f98
β€’
1 Parent(s): e41d25d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
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 (Vision Language) Model for Complex Doc Extraction</h1>"
20
 
21
  DESCRIPTION = f"""
22
  <center>
23
- <p>😊 A Space For Complex Doc Extraction Research.
24
  <br>
25
  πŸš€ MODEL NOW: <a href="https://hf.co/{MODEL_ID}">{MODEL_NAME}</a>
26
  <br>
27
- ✨ Tips: Now you can send DM or upload 1 IMAGE/FILE per time.
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": ["./laptop.jpg"]}],
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
  ]