zR commited on
Commit
3f95289
·
1 Parent(s): 4bd1069
Files changed (2) hide show
  1. README.md +2 -2
  2. app.py +8 -3
README.md CHANGED
@@ -6,9 +6,9 @@ colorTo: blue
6
  sdk: gradio
7
  sdk_version: 5.9.0
8
  app_file: app.py
9
- short_description: CogAgent1.5-Chat-Demo
10
  models:
11
- - THUDM/cogagent1.5-9b
12
  tags:
13
  - Agent
14
  - GUI
 
6
  sdk: gradio
7
  sdk_version: 5.9.0
8
  app_file: app.py
9
+ short_description: CogAgent-GUI-Demo
10
  models:
11
+ - THUDM/cogagent-9b-20241220
12
  tags:
13
  - Agent
14
  - GUI
app.py CHANGED
@@ -187,9 +187,14 @@ def main():
187
  with gr.Blocks(analytics_enabled=False) as demo:
188
  gr.HTML("<h1 align='center'>CogAgent-9B-20241220 Demo</h1>")
189
  gr.HTML(
190
- "<p align='center' style='color:red;'>This demo is for learning and communication purposes only. Users must assume responsibility for the risks associated with AI-generated planning and operations.</p>"
191
- "<p align='center' style='color:red;'>In this demo, the model assumes that the user is using a Mac operating system, so it is recommended to upload screenshots from a Mac operating system.</p>"
192
- "<p align='left' style='color:black;'>1. Upload an image.<br>2. Provide your instructions to CogAgent.<br>3. Wait for CogAgent to return specific operations. If there are bounding boxes (Bbox), they will be displayed in the image area on the right.</p>"
 
 
 
 
 
193
  )
194
  with gr.Row():
195
  img_path = gr.Image(label="Upload a Screenshot", type="filepath", height=400)
 
187
  with gr.Blocks(analytics_enabled=False) as demo:
188
  gr.HTML("<h1 align='center'>CogAgent-9B-20241220 Demo</h1>")
189
  gr.HTML(
190
+ """
191
+ <p align='center' style='color:red;'>This demo is for learning and communication purposes only. Users must assume responsibility for the risks associated with AI-generated planning and operations.</p>
192
+ <p align='center' style='color:red;'>In this demo, the model assumes that the user is using a Mac operating system. Therefore, it is recommended to upload screenshots taken on a Mac.</p>
193
+ <p align='left' style='color:black;'>1. Upload a screenshot from your computer (must be from a Mac, and a full-screen screenshot).<br>
194
+ 2. Provide your instructions to CogAgent (e.g., send a message to XXX).<br>
195
+ 3. Wait for CogAgent to return specific operations. If bounding boxes (Bbox) are detected, they will be displayed in the image area on the right.</p>
196
+ <p align='left' style='color:black;'>The model will only return the next step's instructions. The online demo cannot control your computer. Please visit the <a href="https://github.com/THUDM/CogAgent">GitHub repository</a> for the full version of the demo.</p>
197
+ """
198
  )
199
  with gr.Row():
200
  img_path = gr.Image(label="Upload a Screenshot", type="filepath", height=400)