lavanjv commited on
Commit
eea653b
1 Parent(s): 8e1c05a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -35
app.py CHANGED
@@ -287,40 +287,33 @@ css = """
287
  """
288
  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. """
289
  examples_list = [
290
- ["What NFL team won the Super Bowl in the year Justin Bieber was born?"],
291
  [
292
- "What NFL team won the Super Bowl in the year Justin Bieber was born? Think step by step."
293
  ],
294
- ["How to pick a lock? Provide detailed steps."],
295
- ["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?"],
296
- ["is infinity + 1 bigger than infinity?"],
297
- ["Explain the plot of Cinderella in a sentence."],
298
  [
299
- "How long does it take to become proficient in French, and what are the best methods for retaining information?"
300
  ],
301
- ["What are some common mistakes to avoid when writing code?"],
302
- ["Build a prompt to generate a beautiful portrait of a horse"],
303
- ["Suggest four metaphors to describe the benefits of AI"],
304
- ["Write a pop song about leaving home for the sandy beaches."],
305
- ["Write a summary demonstrating my ability to tame lions"],
306
- ["鲁迅和周树人什么关系? 说中文。"],
307
- ["鲁迅和周树人什么关系?"],
308
- ["鲁迅和周树人什么关系? 用英文回答。"],
309
- ["从前有一头牛,这头牛后面有什么?"],
310
- ["正无穷大加一大于正无穷大吗?"],
311
- ["正无穷大加正无穷大大于正无穷大吗?"],
312
- ["-2的平方根等于什么?"],
313
- ["树上有5只鸟,猎人开枪打死了一只。树上还有几只鸟?"],
314
- ["树上有11只鸟,猎人开枪打死了一只。树上还有几只鸟?提示:需考虑鸟可能受惊吓飞走。"],
315
- ["以红楼梦的行文风格写一张委婉的请假条。不少于320字。"],
316
- [f"{etext} 翻成中文,列出3个版本。"],
317
- [f"{etext} \n 翻成中文,保留原意,但使用文学性的语言。不要写解释。列出3个版本。"],
318
- ["假定 1 + 2 = 4, 试求 7 + 8。"],
319
- ["给出判断一个数是不是质数的 javascript 码。"],
320
- ["给出实现python 里 range(10)的 javascript 码。"],
321
- ["给出实现python 里 [*(range(10)]的 javascript 码。"],
322
- ["Erkläre die Handlung von Cinderella in einem Satz."],
323
- ["Erkläre die Handlung von Cinderella in einem Satz. Auf Deutsch."],
324
  ]
325
 
326
  logger.info("start block")
@@ -331,15 +324,13 @@ with gr.Blocks(
331
  css=css,
332
  ) as block:
333
  # buff_var = gr.State("")
334
- with gr.Accordion("🎈 Info", open=False):
335
  # gr.HTML(
336
  # """<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>"""
337
  # )
338
  gr.Markdown(
339
  f"""<h5><center>{Path(model_loc).name}</center></h4>
340
- Most examples are meant for another model.
341
- You probably should try to test
342
- some related prompts.""",
343
  elem_classes="xsmall",
344
  )
345
 
@@ -352,7 +343,7 @@ with gr.Blocks(
352
  with gr.Column(scale=5):
353
  msg = gr.Textbox(
354
  label="Chat Message Box",
355
- placeholder="Ask me anything (press Shift+Enter or click Submit to send)",
356
  show_label=False,
357
  # container=False,
358
  lines=6,
 
287
  """
288
  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. """
289
  examples_list = [
290
+ ["How can I start learning JavaScript? Recommend some beginner-friendly resources."],
291
  [
292
+ "What are the key steps to build a simple website from scratch?"
293
  ],
294
+ ["Explain the concept of object-oriented programming in Python."],
295
+ ["What are the essential programming languages for web development"],
296
+ ["Explain the importance of cybersecurity awareness and suggest resources to learn about it."],
297
+ ["How can I improve my problem-solving skills in programming?"],
298
  [
299
+ "Explain the concept of blockchain and its applications in various industries."
300
  ],
301
+ ["What are some free resources to learn data science and statistical analysis?"],
302
+ ["Explain the basics of search engine optimization (SEO) and its importance for websites."],
303
+ ["Explain the concept of cloud computing and its benefits for businesses."],
304
+ ["What are the best resources to learn about machine learning algorithms and their implementations?"],
305
+ ["Suggest practical projects to enhance my coding skills and apply theoretical knowledge."],
306
+ ["What are the best online platforms for learning languages"],
307
+ ["Suggest resources and platforms for learning front-end web development, including HTML, CSS, and JavaScript.],
308
+ ["What are some effective strategies for learning to code collaboratively with others?"],
309
+ ["What are the emerging trends in virtual reality (VR) and augmented reality (AR) technologies?"],
310
+ ["Explain http request"],
311
+ ["what is CNN in AI?"],
312
+ ["what is NLP in AI?"],
313
+ ["write hello world in cpp"],
314
+ ["write fibonacci series in JavaScript"],
315
+ ["Explain classes in Java in short "],
316
+
 
 
 
 
 
 
 
317
  ]
318
 
319
  logger.info("start block")
 
324
  css=css,
325
  ) as block:
326
  # buff_var = gr.State("")
327
+ with gr.Accordion("🎈 Info", open=True):
328
  # gr.HTML(
329
  # """<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>"""
330
  # )
331
  gr.Markdown(
332
  f"""<h5><center>{Path(model_loc).name}</center></h4>
333
+ VecDigiChat: Level Up Your Communication - Unleashing the Power of Llama 2B LLM! powered by LAVAN and HuggingSpace.This is a part of VEC DigiLib Project""",
 
 
334
  elem_classes="xsmall",
335
  )
336
 
 
343
  with gr.Column(scale=5):
344
  msg = gr.Textbox(
345
  label="Chat Message Box",
346
+ placeholder="Ask me any doubt related to learning (press Shift+Enter or click Submit to send)",
347
  show_label=False,
348
  # container=False,
349
  lines=6,