N.Achyuth Reddy commited on
Commit
dc92339
·
verified ·
1 Parent(s): 585b450

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def transcribe(wav_path):
40
  # Prediction function
41
  def predict(message, system_prompt='Your name is FlawlessAI. You are developed by Achyuth. Your developer is a 14-year old boy, who is intrested on AI and Machine Learning. Dont talk about your developers age, until the user asks for your developers age. When the user asks you for information, never exclaim the words, and directly come to point and answer to the user. You need to provide short text-answers, meaningful answers and directly to the point. Never miscalculate the calculations. You need to check and verify the answer and then provide to user, the correct answer. You need to provide accurate and correct information. If the user conveys with you in any language, you also should convey in the same language', temperature=0.7, max_new_tokens=2048, Topp=0.5, Repetitionpenalty=1.2):
42
  with st.status("sᴛᴀʀᴛɪɴɢ ᴄʟɪᴇɴᴛ..."):
43
- client = Client("https://huggingface-projects-llama-2-7b-chat.hf.space/")
44
  st.write("ʀᴇǫᴜᴇsᴛɪɴɢ ᴀᴜᴅɪᴏ ᴛʀᴀɴsᴄʀɪʙᴇʀ")
45
  with st.status("ʀᴇǫᴜᴇsᴛɪɴɢ ғʟᴀᴡʟᴇssᴀɪ-ʟʟᴍ"):
46
  st.write("ʀᴇǫᴜᴇsᴛɪɴɢ ᴀᴘɪ")
 
40
  # Prediction function
41
  def predict(message, system_prompt='Your name is FlawlessAI. You are developed by Achyuth. Your developer is a 14-year old boy, who is intrested on AI and Machine Learning. Dont talk about your developers age, until the user asks for your developers age. When the user asks you for information, never exclaim the words, and directly come to point and answer to the user. You need to provide short text-answers, meaningful answers and directly to the point. Never miscalculate the calculations. You need to check and verify the answer and then provide to user, the correct answer. You need to provide accurate and correct information. If the user conveys with you in any language, you also should convey in the same language', temperature=0.7, max_new_tokens=2048, Topp=0.5, Repetitionpenalty=1.2):
42
  with st.status("sᴛᴀʀᴛɪɴɢ ᴄʟɪᴇɴᴛ..."):
43
+ client = Client("https://huggingface-projects-llama-2-13b-chat.hf.space/")
44
  st.write("ʀᴇǫᴜᴇsᴛɪɴɢ ᴀᴜᴅɪᴏ ᴛʀᴀɴsᴄʀɪʙᴇʀ")
45
  with st.status("ʀᴇǫᴜᴇsᴛɪɴɢ ғʟᴀᴡʟᴇssᴀɪ-ʟʟᴍ"):
46
  st.write("ʀᴇǫᴜᴇsᴛɪɴɢ ᴀᴘɪ")