gulixin0922 commited on
Commit
62cda7d
1 Parent(s): 033c8ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -350,13 +350,22 @@ def http_bot(
350
  # <h1 style="font-size: 28px; font-weight: bold;">Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling</h1>
351
  title_html = """
352
  <img src="https://internvl.opengvlab.com/assets/logo-47b364d3.jpg" style="width: 280px; height: 70px;">
353
- <p>InternVL2.5 Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling</p>
354
  <a href="https://internvl.github.io/blog/2024-12-05-InternVL-2.5/">[📜 InternVL Blog]</a>
355
  <a href="https://internvl.opengvlab.com/">[🌟 Official Demo]</a>
356
  <a href="https://github.com/OpenGVLab/InternVL?tab=readme-ov-file#quick-start-with-huggingface">[🚀 Quick Start]</a>
357
  """
358
 
359
 
 
 
 
 
 
 
 
 
 
360
  # .gradio-container {margin: 5px 10px 0 10px !important};
361
  block_css = """
362
  .gradio-container {margin: 0.1% 1% 0 1% !important; max-width: 98% !important;};
@@ -546,6 +555,7 @@ def build_demo():
546
  )
547
  clear_btn = gr.Button(value="🗑️ Clear", interactive=False)
548
 
 
549
  url_params = gr.JSON(visible=False)
550
 
551
  # Register listeners
@@ -642,4 +652,3 @@ if __name__ == "__main__":
642
  share=args.share,
643
  max_threads=args.concurrency_count,
644
  )
645
-
 
350
  # <h1 style="font-size: 28px; font-weight: bold;">Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling</h1>
351
  title_html = """
352
  <img src="https://internvl.opengvlab.com/assets/logo-47b364d3.jpg" style="width: 280px; height: 70px;">
353
+ <p>InternVL2.5: Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling</p>
354
  <a href="https://internvl.github.io/blog/2024-12-05-InternVL-2.5/">[📜 InternVL Blog]</a>
355
  <a href="https://internvl.opengvlab.com/">[🌟 Official Demo]</a>
356
  <a href="https://github.com/OpenGVLab/InternVL?tab=readme-ov-file#quick-start-with-huggingface">[🚀 Quick Start]</a>
357
  """
358
 
359
 
360
+ tos_markdown = """
361
+ ### Terms of use
362
+ By using this service, users are required to agree to the following terms:
363
+ The service is a research preview intended for non-commercial use only. It only provides limited safety measures and may generate offensive content. It must not be used for any illegal, harmful, violent, racist, or sexual purposes. The service may collect user dialogue data for future research.
364
+ Please click the "Flag" button if you get any inappropriate answer! We will collect those to keep improving our moderator.
365
+ For an optimal experience, please use desktop computers for this demo, as mobile devices may compromise its quality.
366
+ """
367
+
368
+
369
  # .gradio-container {margin: 5px 10px 0 10px !important};
370
  block_css = """
371
  .gradio-container {margin: 0.1% 1% 0 1% !important; max-width: 98% !important;};
 
555
  )
556
  clear_btn = gr.Button(value="🗑️ Clear", interactive=False)
557
 
558
+ gr.Markdown(tos_markdown)
559
  url_params = gr.JSON(visible=False)
560
 
561
  # Register listeners
 
652
  share=args.share,
653
  max_threads=args.concurrency_count,
654
  )