lamhieu commited on
Commit
0e82e21
·
1 Parent(s): 1e1234c

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(
@@ -63,6 +64,26 @@ Rely on the context, such as the time, to offer responses that feel relevant and
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
  HEAD = """
67
  <script>
68
  function schedule_updates() {
@@ -821,8 +842,8 @@ chat_interface = gr.ChatInterface(
821
  additional_inputs_accordion=gr.Accordion(label="Additional Inputs", open=True),
822
  stop_btn="Stop",
823
  cache_examples=False,
824
- examples=[],
825
- examples_per_page=10,
826
  concurrency_limit=100,
827
  )
828
 
 
4
  import json
5
  import requests
6
  import zlib
7
+ import random
8
  from PIL import Image
9
 
10
  subprocess.run(
 
64
  # 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.
65
  # """
66
 
67
+ EXAMPLES = [
68
+ "Write a formal email to a colleague explaining a delay in project delivery, while also proposing a solution to get back on track.",
69
+ "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.",
70
+ "한국어를 처음 배우는 사람을 위해 한국어의 기본 문법 규칙을 간단히 설명하고, 연습 문제를 만들어 보세요.",
71
+ "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.",
72
+ "Escreva um resumo das principais causas da desmatamento na Amazônia e proponha soluções para mitigar seus efeitos.",
73
+ "请用中文解释如何使用Python编程语言进行数据分析,并列举三个常见的应用场景。",
74
+ "Rédigez un paragraphe sur les avantages et les inconvénients de l'apprentissage en ligne par rapport à l'éducation traditionnelle.",
75
+ "Spiega il processo di traduzione di un testo letterario dall'italiano all'inglese, evidenziando le sfide culturali e linguistiche.",
76
+ "Erstellen Sie eine detaillierte Anleitung zur Installation eines LAMP-Stacks auf einem Linux-Server und erläutern Sie die Verwendung jedes Bestandteils.",
77
+ "日本語で自己紹介のメールを書いてください。仕事で初めて連絡を取る相手に、自分の役職と業務内容を説明してください。",
78
+ "Опишите процесс создания и использования базы данных для управления запасами на складе, включая ключевые функции и примеры SQL-запросов.",
79
+ "Przedstaw krótki przewodnik po najważniejszych zabytkach Krakowa, podkreślając ich historyczne znaczenie.",
80
+ "Schrijf een korte handleiding voor het opzetten van een crowdfundingcampagne, inclusief tips voor succes en valkuilen om te vermijden.",
81
+ "एक निबंध लिखिए जिसमें सोशल मीडिया के उपयोग के फायदे और नुकसान पर चर्चा की गई हो, और यह कैसे समाज को प्रभावित कर रहा है।",
82
+ "Türkçe öğrenen yabancılar için Türk alfabesini ve en temel dilbilgisi kurallarını açıklayan bir kılavuz yazın.",
83
+ ]
84
+
85
+ random.shuffle(EXAMPLES)
86
+
87
  HEAD = """
88
  <script>
89
  function schedule_updates() {
 
842
  additional_inputs_accordion=gr.Accordion(label="Additional Inputs", open=True),
843
  stop_btn="Stop",
844
  cache_examples=False,
845
+ examples=EXAMPLES,
846
+ examples_per_page=8,
847
  concurrency_limit=100,
848
  )
849