Spaces:
Running
Running
| developer_info = { | |
| 'developer': 'Devs Do Code', | |
| 'contact': { | |
| 'Telegram': 'https://t.me/devsdocode', | |
| 'YouTube Channel': 'https://www.youtube.com/@DevsDoCode', | |
| 'LinkedIn': 'https://www.linkedin.com/in/developer-sreejan/', | |
| 'Discord Server': 'https://discord.gg/ehwfVtsAts', | |
| 'Instagram': { | |
| 'Personal': 'https://www.instagram.com/sree.shades_/', | |
| 'Channel': 'https://www.instagram.com/devsdocode_/' | |
| } | |
| } | |
| } | |
| endpoint = { | |
| 'route': "/generate", | |
| 'params': { | |
| "query": "[SEARCH QUERY]" | |
| }, | |
| 'optional_params': { | |
| "max_tokens": "[]", | |
| "model": "[]", | |
| "temperature": "[]", | |
| "system_prompt": "[]" | |
| }, | |
| 'url_demo' : '/generate?query=Who is Devs Do Code&&max_tokens=500&&model=meta-llama/Meta-Llama-3-70B-Instruct&&temperature=0.7&&system_prompt=Your Owner is "Devs Do Code"' | |
| } | |
| available_models = { | |
| "Meta Llama 3 70B Instruct": "meta-llama/Meta-Llama-3-70B-Instruct", | |
| "Meta Llama 3 8B Instruct": "meta-llama/Meta-Llama-3-8B-Instruct", | |
| "Mixtral 8x22B Instruct v0.1": "mistralai/Mixtral-8x22B-Instruct-v0.1", | |
| "Mixtral 8x22B v0.1": "mistralai/Mixtral-8x22B-v0.1", | |
| "Microsoft WizardLM 2 8x22B": "microsoft/WizardLM-2-8x22B", | |
| "Microsoft WizardLM 2 7B": "microsoft/WizardLM-2-7B", | |
| "HuggingFace Zephyr Orpo 141b A35b v0.1": "HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1", | |
| "Google Gemma 1.1 7b it": "google/gemma-1.1-7b-it", | |
| "Databricks DBRX Instruct": "databricks/dbrx-instruct", | |
| "Mixtral 8x7B Instruct v0.1": "mistralai/Mixtral-8x7B-Instruct-v0.1", | |
| "Mistral 7B Instruct v0.2": "mistralai/Mistral-7B-Instruct-v0.2", | |
| "Meta Llama 2 70b Chat HF": "meta-llama/Llama-2-70b-chat-hf", | |
| "Cognitive Computations Dolphin 2.6 Mixtral 8x7B": "cognitivecomputations/dolphin-2.6-mixtral-8x7b" | |
| } | |
| error_message = { | |
| 'developer_contact': { | |
| 'Telegram': 'https://t.me/DevsDoCode', | |
| 'Instagram': 'https://www.instagram.com/sree.shades_/', | |
| 'Discord': 'https://discord.gg/ehwfVtsAts', | |
| 'LinkedIn': 'https://www.linkedin.com/in/developer-sreejan/', | |
| 'Twitter': 'https://twitter.com/Anand_Sreejan' | |
| }, | |
| 'error': 'Oops! Something went wrong. Please contact the developer Devs Do Code.' | |
| } | |
| default_info = """This API is developed and being maintained by Devs Do Code (Sreejan). | |
| **About the Developer** | |
| Sreejan, a high school student from Patna, Bihar, India, has emerged as a notable figure in the technology sector. | |
| His creation of an API is a testament to his dedication and expertise. Despite his youth, Sreejan's contributions | |
| to artificial intelligence and machine learning are significant. As an AI & ML Engineer, he specializes in Deep Learning, | |
| Natural Language Processing (NLP), and Robotics, with proficiency in Python, Java, and Mobile App Development. | |
| Beyond his role as a technology consumer, Sreejan is an active open-source contributor, notably to projects like Hugging Face. | |
| He is also recognized for his role in community development, particularly through "Devs Do Code," a platform he | |
| founded to provide quality coding resources, tutorials, and projects. His mission is to equip developers with the | |
| necessary skills to thrive in the ever-evolving tech landscape. Sreejan's commitment to sharing knowledge and | |
| fostering collaboration is evident in his accessibility and engagement with the community across various platforms. | |
| Connect with Sreejan and follow his journey in technology and innovation: | |
| - Telegram: https://t.me/devsdocode | |
| - YouTube Channel: https://www.youtube.com/@DevsDoCode | |
| - LinkedIn: https://www.linkedin.com/in/developer-sreejan/ | |
| - Discord Server: https://discord.gg/ehwfVtsAts | |
| - Personal: https://www.instagram.com/sree.shades_/ | |
| - Channel: https://www.instagram.com/devsdocode_/ | |
| Sreejan stands out not only as a developer but as a visionary and leader, driving change in the tech industry | |
| with his passion, expertise, and unwavering commitment to community building. He continues to shape the | |
| future of technology, one line of code at a time. | |
| """ | |