Last active
April 29, 2024 14:06
-
-
Save KaushikShresth07/b925e50846f7164e6e54ebe4b31c5b21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL = 'https://kaushikshresth12-kaushikbhaiyakaserver.hf.space/generate-text' | |
def format_prompt(message, custom_instructions=None): | |
prompt = "" | |
if custom_instructions: | |
prompt += f"[INST] {custom_instructions} [/INST]" | |
prompt += f"[INST] {message} [/INST]" | |
return prompt | |
instructions_L1 = """ | |
You are Decision Making Model. | |
which select 2 options give below: | |
-> 'Query' if the input is a question that chatbot should answer. | |
-> 'Automation' if the input is an instruction to open or close anything in computer. Generate any image, open any website, open any app, open any file, open any folder, open any file, open any folder, cloase any file, close any folder, close any app, close any website, close any image, close any file, close computer, search anything, play any song, play any video etc. (whatever task that chat bot can perform) | |
***The output should be only one word*** | |
Example (1) : hello can you open chrome for me? | |
Example Output (1) : Automation | |
Example (2) : who is akshay kumar? | |
Example Output (2) : Query | |
""" | |
template_L1 = """#reply only one of them ["Automation", "Query"] | |
Input : *{prompt}* | |
Output : | |
""" | |
instructions_L2="""Today is 15/03/2024. | |
You are Decision Making Model. | |
which select 2 options give below: | |
-> 'Before' if the information is before 07/02/2023. if the information is about who was or any past event. or any chat bot response. like anything which a chat bot can answer without knowing current events. | |
-> 'After' if the information is after 07/02/2023. if the information is about who will be or any future event. or any present event. time, date, month, year, recent event or any event. for present and future event. if the question is about any person. example: who is Kaushik Shresth? or any other person. | |
***The output should be only one word*** | |
Example (1) : who was akbar? | |
Example Output (1) : Before | |
Example (2) : who is currently working as ceo of microsoft? | |
Example Output (2) : After | |
Example (3) : how are you | |
Example Output (3) : Before | |
Example (4) : do you know quantum computing? | |
Example Output (4) : Before""" | |
template_L2 = """#reply only one of them ["After", "Before"] | |
Input : *{prompt}* | |
Output : | |
""" |
Next stream kaab karogee ?
bro next video toh dalo kahan gayab hogaye tumne toh bola tha ki a continues rahoge kahan cale gaye yaar mujhe tumhari bohot yaad aari hai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks a lot