lamhieu commited on
Commit
3912004
·
1 Parent(s): 48e5f25

chore: update something

Browse files
Files changed (1) hide show
  1. app.py +23 -2
app.py CHANGED
@@ -4,6 +4,7 @@ import subprocess
4
  import json
5
  import requests
6
  import zlib
 
7
  from PIL import Image
8
 
9
  subprocess.run(
@@ -62,6 +63,26 @@ Rely on the context, such as the time, to offer responses that feel relevant and
62
  # Once we've successfully dissected the problem into manageable components, assemble these parts like a puzzle. Focus on identifying connections, potential overlaps, and key information from each theme. The goal is to reconstruct a cohesive, well-rounded answer that addresses the original complexity of the question.
63
  # """
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  HEAD = """
66
  <script>
67
  function schedule_updates() {
@@ -812,8 +833,8 @@ chat_interface = gr.ChatInterface(
812
  additional_inputs_accordion=gr.Accordion(label="Additional Inputs", open=True),
813
  stop_btn="Stop",
814
  cache_examples=False,
815
- examples=[],
816
- examples_per_page=10,
817
  concurrency_limit=100,
818
  )
819
 
 
4
  import json
5
  import requests
6
  import zlib
7
+ import random
8
  from PIL import Image
9
 
10
  subprocess.run(
 
63
  # Once we've successfully dissected the problem into manageable components, assemble these parts like a puzzle. Focus on identifying connections, potential overlaps, and key information from each theme. The goal is to reconstruct a cohesive, well-rounded answer that addresses the original complexity of the question.
64
  # """
65
 
66
+ EXAMPLES = [
67
+ "Write a formal email to a colleague explaining a delay in project delivery, while also proposing a solution to get back on track.",
68
+ "Giải thích nguyên nhân dẫn đến việc tăng giá hàng hóa trong nền kinh tế hiện nay và đề xuất một số biện pháp để kiểm soát lạm phát.",
69
+ "한국어를 처음 배우는 사람을 위해 한국어의 기본 문법 규칙을 간단히 설명하고, 연습 문제를 만들어 보세요.",
70
+ "Describe el proceso de solicitud de una visa de estudiante para estudiar en una universidad en el extranjero, incluyendo los documentos requeridos y los pasos clave.",
71
+ "Escreva um resumo das principais causas da desmatamento na Amazônia e proponha soluções para mitigar seus efeitos.",
72
+ "请用中文解释如何使用Python编程语言进行数据分析,并列举三个常见的应用场景。",
73
+ "Rédigez un paragraphe sur les avantages et les inconvénients de l'apprentissage en ligne par rapport à l'éducation traditionnelle.",
74
+ "Spiega il processo di traduzione di un testo letterario dall'italiano all'inglese, evidenziando le sfide culturali e linguistiche.",
75
+ "Erstellen Sie eine detaillierte Anleitung zur Installation eines LAMP-Stacks auf einem Linux-Server und erläutern Sie die Verwendung jedes Bestandteils.",
76
+ "日本語で自己紹介のメールを書いてください。仕事で初めて連絡を取る相手に、自分の役職と業務内容を説明してください。",
77
+ "Опишите процесс создания и использования базы данных для управления запасами на складе, включая ключевые функции и примеры SQL-запросов.",
78
+ "Przedstaw krótki przewodnik po najważniejszych zabytkach Krakowa, podkreślając ich historyczne znaczenie.",
79
+ "Schrijf een korte handleiding voor het opzetten van een crowdfundingcampagne, inclusief tips voor succes en valkuilen om te vermijden.",
80
+ "एक निबंध लिखिए जिसमें सोशल मीडिया के उपयोग के फायदे और नुकसान पर चर्चा की गई हो, और यह कैसे समाज को प्रभावित कर रहा है।",
81
+ "Türkçe öğrenen yabancılar için Türk alfabesini ve en temel dilbilgisi kurallarını açıklayan bir kılavuz yazın.",
82
+ ]
83
+
84
+ random.shuffle(EXAMPLES)
85
+
86
  HEAD = """
87
  <script>
88
  function schedule_updates() {
 
833
  additional_inputs_accordion=gr.Accordion(label="Additional Inputs", open=True),
834
  stop_btn="Stop",
835
  cache_examples=False,
836
+ examples=EXAMPLES,
837
+ examples_per_page=8,
838
  concurrency_limit=100,
839
  )
840