Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -292,44 +292,6 @@ css = """
|
|
292 |
.xsmall {font-size: x-small;}
|
293 |
"""
|
294 |
etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
|
295 |
-
examples_list = [
|
296 |
-
["What NFL team won the Super Bowl in the year Justin Bieber was born?"],
|
297 |
-
[
|
298 |
-
"What NFL team won the Super Bowl in the year Justin Bieber was born? Think step by step."
|
299 |
-
],
|
300 |
-
["How to pick a lock? Provide detailed steps."],
|
301 |
-
["If it takes 10 hours to dry 10 clothes, assuming all the clothes are hanged together at the same time for drying , then how long will it take to dry a cloth?"],
|
302 |
-
["is infinity + 1 bigger than infinity?"],
|
303 |
-
["Explain the plot of Cinderella in a sentence."],
|
304 |
-
[
|
305 |
-
"How long does it take to become proficient in French, and what are the best methods for retaining information?"
|
306 |
-
],
|
307 |
-
["What are some common mistakes to avoid when writing code?"],
|
308 |
-
["Build a prompt to generate a beautiful portrait of a horse"],
|
309 |
-
["Suggest four metaphors to describe the benefits of AI"],
|
310 |
-
["Write a pop song about leaving home for the sandy beaches."],
|
311 |
-
["Write a pop song about having hot sex on a sandy beach."],
|
312 |
-
["Write a summary demonstrating my ability to tame lions"],
|
313 |
-
["鲁迅和周树人什么关系? 说中文。"],
|
314 |
-
["鲁迅和周树人什么关系?"],
|
315 |
-
["鲁迅和周树人什么关系? 用英文回答。"],
|
316 |
-
["从前有一头牛,这头牛后面有什么?"],
|
317 |
-
["正无穷大加一大于正无穷大吗?"],
|
318 |
-
["正无穷大加正无穷大大于正无穷大吗?"],
|
319 |
-
["-2的平方根等于什么?"],
|
320 |
-
["树上有5只鸟,猎人开枪打死了一只。树上还有几只鸟?"],
|
321 |
-
["树上有11只鸟,猎人开枪打死了一只。树上还有几只鸟?提示:需考虑鸟可能受惊吓飞走。"],
|
322 |
-
["以红楼梦的行文风格写一张委婉的请假条。不少于320字。"],
|
323 |
-
[f"{etext} 翻成中文,列出3个版本。"],
|
324 |
-
[f"{etext} \n 翻成中文,保留原意,但使用文学性的语言。不要写解释。列出3个版本。"],
|
325 |
-
["假定 1 + 2 = 4, 试求 7 + 8。"],
|
326 |
-
["给出判断一个数是不是质数的 javascript 码。"],
|
327 |
-
["给出实现python 里 range(10)的 javascript 码。"],
|
328 |
-
["给出实现python 里 [*(range(10)]的 javascript 码。"],
|
329 |
-
["Erkläre die Handlung von Cinderella in einem Satz."],
|
330 |
-
["Erkläre die Handlung von Cinderella in einem Satz. Auf Deutsch."],
|
331 |
-
]
|
332 |
-
|
333 |
logger.info("start block")
|
334 |
|
335 |
with gr.Blocks(
|
@@ -388,13 +350,6 @@ with gr.Blocks(
|
|
388 |
change = gr.Button("Change System Prompt")
|
389 |
reset = gr.Button("Reset System Prompt")
|
390 |
|
391 |
-
with gr.Accordion("Example Inputs", open=True):
|
392 |
-
examples = gr.Examples(
|
393 |
-
examples=examples_list,
|
394 |
-
inputs=[msg],
|
395 |
-
examples_per_page=40,
|
396 |
-
)
|
397 |
-
|
398 |
# with gr.Row():
|
399 |
with gr.Accordion("Disclaimer", open=False):
|
400 |
_ = Path(model_loc).name
|
|
|
292 |
.xsmall {font-size: x-small;}
|
293 |
"""
|
294 |
etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
logger.info("start block")
|
296 |
|
297 |
with gr.Blocks(
|
|
|
350 |
change = gr.Button("Change System Prompt")
|
351 |
reset = gr.Button("Reset System Prompt")
|
352 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
# with gr.Row():
|
354 |
with gr.Accordion("Disclaimer", open=False):
|
355 |
_ = Path(model_loc).name
|