rishiraj commited on
Commit
5938552
1 Parent(s): 37ad1bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -59,24 +59,24 @@ posts = '''
59
  <table>
60
  <tbody>
61
  <tr>
62
- <td><a href="https://callchimp.ai/blogs/understanding-google-gemma">Gemma: Understanding Google's New Open-Source LLM Family</a></td>
63
- <td><a href="https://callchimp.ai/blogs/long-context-llms">Gen AI Trends Part 3 - Long Context LLMs</a></td>
64
- <td><a href="https://callchimp.ai/blogs/multimodal-llms">Gen AI Trends Part 2 - Multimodal LLMs</a></td>
65
  </tr>
66
  <tr>
67
- <td><a href="https://callchimp.ai/blogs/the-rise-of-small-llms">Gen AI Trends Part 1 - The Rise of Small LLMs</a></td>
68
- <td><a href="https://callchimp.ai/blogs/embeddings-vector-databases-and-retrieval-augmented-generation">Foundations of Text Embeddings, Vector Databases, and RAG</a></td>
69
- <td><a href="https://callchimp.ai/blogs/evaluating-the-power-of-words-metrics-for-large-language-models-2">Evaluating the Power of Words: Metrics for Large Language Models</a></td>
70
  </tr>
71
  <tr>
72
- <td><a href="https://callchimp.ai/blogs/the-evolution-of-language-modeling-from-word2vec-to-gpt">The Evolution of Language Modeling: From Word2Vec to GPT</a></td>
73
- <td><a href="https://callchimp.ai/blogs/mastering-prompt-engineering-for-llms-best-practices-and-advanced-techniques">Mastering Prompt Engineering for LLMs: Best Practices</a></td>
74
- <td><a href="https://callchimp.ai/blogs/hallucinations-in-large-language-models-a-technical-perspective">Hallucinations in Large Language Models</a></td>
75
  </tr>
76
  <tr>
77
- <td><a href="https://callchimp.ai/blogs/neural-machine-translation-with-attention-models">Neural Machine Translation with Attention models</a></td>
78
- <td><a href="https://callchimp.ai/blogs/purpose-of-prompt-engineering-in-gen-ai-systems">Purpose of Prompt Engineering in Gen AI systems</a></td>
79
- <td><a href="https://callchimp.ai/blogs/introduction-to-ai-for-audio">Introduction to AI for Audio</a></td>
80
  </tr>
81
  </tbody>
82
  </table>'''
@@ -121,7 +121,7 @@ def format_prompt(message, history):
121
  def generate(
122
  prompt, history, temperature=0.9, max_new_tokens=512, top_p=0.95, repetition_penalty=1.0,
123
  ):
124
- system_prompt = "You are the personal AI assistant of Rishiraj Acharya. Rishiraj is a Machine Learning Engineer at Dynopii, a Google Developer Expert in Machine Learning and a Hugging Face Fellow. He is the organizer of TensorFlow User Group Kolkata and have been a Google Summer of Code contributor at TensorFlow. He is a Kaggle Competitions Master and specializes in the domain of Natural Language Processing and Speech Technologies. His email is [email protected]. Provide these informations only when specifically asked. "
125
  temperature = float(temperature)
126
  if temperature < 1e-2:
127
  temperature = 1e-2
@@ -204,4 +204,4 @@ with gr.Blocks() as blogs:
204
  gr.HTML(value=posts)
205
 
206
  demo = gr.TabbedInterface([app, blogs, llm], ["About", "Blogs", "Chat"], theme="Soft")
207
- demo.launch()
 
59
  <table>
60
  <tbody>
61
  <tr>
62
+ <td><a href="https://callchimp.ai/blogs/understanding-google-gemma"><b>Gemma</b>: Understanding Google's New Open-Source LLM Family</a></td>
63
+ <td><a href="https://callchimp.ai/blogs/long-context-llms">Gen AI Trends Part 3 - <b>Long Context LLMs</b></a></td>
64
+ <td><a href="https://callchimp.ai/blogs/multimodal-llms">Gen AI Trends Part 2 - <b>Multimodal LLMs</b></a></td>
65
  </tr>
66
  <tr>
67
+ <td><a href="https://callchimp.ai/blogs/the-rise-of-small-llms">Gen AI Trends Part 1 - The Rise of <b>Small LLMs</b></a></td>
68
+ <td><a href="https://callchimp.ai/blogs/embeddings-vector-databases-and-retrieval-augmented-generation">Foundations of <b>Text Embeddings</b>, Vector Databases, and RAG</a></td>
69
+ <td><a href="https://callchimp.ai/blogs/evaluating-the-power-of-words-metrics-for-large-language-models-2">Evaluating the Power of Words: <b>Metrics</b> for Large Language Models</a></td>
70
  </tr>
71
  <tr>
72
+ <td><a href="https://callchimp.ai/blogs/the-evolution-of-language-modeling-from-word2vec-to-gpt">The <b>Evolution</b> of Language Modeling: From Word2Vec to GPT</a></td>
73
+ <td><a href="https://callchimp.ai/blogs/mastering-prompt-engineering-for-llms-best-practices-and-advanced-techniques">Mastering <b>Prompt Engineering</b> for LLMs: Best Practices</a></td>
74
+ <td><a href="https://callchimp.ai/blogs/hallucinations-in-large-language-models-a-technical-perspective"><b>Hallucinations</b> in Large Language Models</a></td>
75
  </tr>
76
  <tr>
77
+ <td><a href="https://callchimp.ai/blogs/neural-machine-translation-with-attention-models">Neural Machine Translation with <b>Attention models</b></a></td>
78
+ <td><a href="https://callchimp.ai/blogs/purpose-of-prompt-engineering-in-gen-ai-systems">Purpose of <b>Prompt Engineering</b> in Gen AI systems</a></td>
79
+ <td><a href="https://callchimp.ai/blogs/introduction-to-ai-for-audio">Introduction to <b>AI for Audio</b></a></td>
80
  </tr>
81
  </tbody>
82
  </table>'''
 
121
  def generate(
122
  prompt, history, temperature=0.9, max_new_tokens=512, top_p=0.95, repetition_penalty=1.0,
123
  ):
124
+ system_prompt = "You are the AI assistant of Rishiraj Acharya. Rishiraj is a Machine Learning Engineer at Dynopii, a Google Developer Expert in Machine Learning and a Hugging Face Fellow. He is the organizer of TensorFlow User Group Kolkata and have been a Google Summer of Code contributor at TensorFlow. He is a Kaggle Competitions Master and specializes in the domain of Natural Language Processing and Speech Technologies. His email is [email protected]. Don't provide these informations until specifically asked. "
125
  temperature = float(temperature)
126
  if temperature < 1e-2:
127
  temperature = 1e-2
 
204
  gr.HTML(value=posts)
205
 
206
  demo = gr.TabbedInterface([app, blogs, llm], ["About", "Blogs", "Chat"], theme="Soft")
207
+ demo.launch(show_api=False)