Ankan Ghosh
commited on
Commit
·
1168087
1
Parent(s):
608db1a
Update app.py
Browse files
app.py
CHANGED
@@ -256,56 +256,34 @@ css = """
|
|
256 |
"""
|
257 |
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. """
|
258 |
examples_list = [
|
259 |
-
["What
|
260 |
-
[
|
261 |
-
"What NFL team won the Super Bowl in the year Justin Bieber was born? Think step by step."
|
262 |
-
],
|
263 |
-
["How to pick a lock? Provide detailed steps."],
|
264 |
["If it takes 10 hours to dry 10 clothes, assuming all the clothes are hung together at the same time for drying , then how long will it take to dry a cloth?"],
|
265 |
["is infinity + 1 bigger than infinity?"],
|
266 |
-
["Explain the plot of
|
267 |
-
[
|
268 |
-
"How long does it take to become proficient in French, and what are the best methods for retaining information?"
|
269 |
-
],
|
270 |
["What are some common mistakes to avoid when writing code?"],
|
271 |
["Build a prompt to generate a beautiful portrait of a horse"],
|
272 |
["Suggest four metaphors to describe the benefits of AI"],
|
273 |
-
["Write
|
274 |
-
["Write a summary
|
275 |
-
|
276 |
-
["鲁迅和周树人什么关系?"],
|
277 |
-
["鲁迅和周树人什么关系? 用英文回答。"],
|
278 |
-
["从前有一头牛,这头牛后面有什么?"],
|
279 |
-
["正无穷大加一大于正无穷大吗?"],
|
280 |
-
["正无穷大加正无穷大大于正无穷大吗?"],
|
281 |
-
["-2的平方根等于什么?"],
|
282 |
-
["树上有5只鸟,猎人开枪打死了一只。树上还有几只鸟?"],
|
283 |
-
["树上有11只鸟,猎人开枪打死了一只。树上还有几只鸟?提示:需考虑鸟可能受惊吓飞走。"],
|
284 |
-
["以红楼梦的行文风格写一张委婉的请假条。不少于320字。"],
|
285 |
-
[f"{etext} 翻成中文,列出3个版本。"],
|
286 |
-
[f"{etext} \n 翻成中文,保留原意,但使用文学性的语言。不要写解释。列出3个版本。"],
|
287 |
-
["假定 1 + 2 = 4, 试求 7 + 8。"],
|
288 |
-
["给出判断一个数是不是质数的 javascript 码。"],
|
289 |
-
["给出实现python 里 range(10)的 javascript 码。"],
|
290 |
-
["给出实现python 里 [*(range(10)]的 javascript 码。"],
|
291 |
-
["Erkläre die Handlung von Cinderella in einem Satz."],
|
292 |
-
["Erkläre die Handlung von Cinderella in einem Satz. Auf Deutsch."],
|
293 |
]
|
294 |
|
295 |
logger.info("start block")
|
296 |
|
297 |
with gr.Blocks(
|
298 |
-
title=
|
299 |
theme=gr.themes.Soft(text_size="sm", spacing_size="sm"),
|
300 |
css=css,
|
301 |
) as block:
|
302 |
# buff_var = gr.State("")
|
303 |
-
with gr.Accordion("
|
304 |
# gr.HTML(
|
305 |
# """<center><a href="https://huggingface.co/spaces/mikeee/mpt-30b-chat?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate"></a> and spin a CPU UPGRADE to avoid the queue</center>"""
|
306 |
# )
|
307 |
gr.Markdown(
|
308 |
-
f"""<h5><center>
|
309 |
Most examples are meant for another model.
|
310 |
You probably should try to test
|
311 |
some related prompts.""",
|
|
|
256 |
"""
|
257 |
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. """
|
258 |
examples_list = [
|
259 |
+
["What is the capital of India"],
|
260 |
+
["How to play Chess? Provide detailed steps."],
|
|
|
|
|
|
|
261 |
["If it takes 10 hours to dry 10 clothes, assuming all the clothes are hung together at the same time for drying , then how long will it take to dry a cloth?"],
|
262 |
["is infinity + 1 bigger than infinity?"],
|
263 |
+
["Explain the plot of Oppenheimer in a sentence."],
|
264 |
+
["How long does it take to become proficient in French, and what are the best methods for retaining information?"],
|
|
|
|
|
265 |
["What are some common mistakes to avoid when writing code?"],
|
266 |
["Build a prompt to generate a beautiful portrait of a horse"],
|
267 |
["Suggest four metaphors to describe the benefits of AI"],
|
268 |
+
["Write most important points of Bhagavad Gita"],
|
269 |
+
["Write a summary Why is it so hard to understand women"],
|
270 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
]
|
272 |
|
273 |
logger.info("start block")
|
274 |
|
275 |
with gr.Blocks(
|
276 |
+
title="LlamaGPT🤖",
|
277 |
theme=gr.themes.Soft(text_size="sm", spacing_size="sm"),
|
278 |
css=css,
|
279 |
) as block:
|
280 |
# buff_var = gr.State("")
|
281 |
+
with gr.Accordion("LlamaGPT🤖", open=False):
|
282 |
# gr.HTML(
|
283 |
# """<center><a href="https://huggingface.co/spaces/mikeee/mpt-30b-chat?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate"></a> and spin a CPU UPGRADE to avoid the queue</center>"""
|
284 |
# )
|
285 |
gr.Markdown(
|
286 |
+
f"""<h5><center>Gradio Demo for Meta's Llama 2 7B-chat</center></h4>
|
287 |
Most examples are meant for another model.
|
288 |
You probably should try to test
|
289 |
some related prompts.""",
|