meta-llama/Meta-Llama-3-8B-Instruct
POST {{baseUrl2}}/meta-llama/Meta-Llama-3-8B-Instruct
Request Body
{"input"=>"I have this dream"}
RESPONSES
status: OK
{"inference_status":{"runtime_ms":4007,"cost":5.160000000000001e-05,"tokens_generated":512,"tokens_input":4},"results":[{"generated_text":" of a world where everyone has access to clean water, food, and shelter. Where everyone has the opportunity to thrive, regardless of their background or circumstances. It's a lofty goal, but I truly believe it's possible. And I believe it's our responsibility to work towards making it a reality.\n\nOf course, this dream isn't just mine. It's a shared vision that many people around the world are working towards. From non-profit organizations to governments, to individuals, we're all in this together. And I believe that together, we can make a difference.\n\nSo, what can we do to make this dream a reality? Well, there are many ways. We can support organizations that are working towards this goal, like the United Nations' Sustainable Development Goals. We can volunteer our time and skills to help make a difference. We can also make conscious choices in our daily lives to reduce our impact on the environment and to support sustainable practices.\n\nBut most importantly, we need to have the courage to dream big. We need to believe that we can make a difference, and that our individual actions can add up to create a collective impact. We need to be willing to take risks, to challenge the status quo, and to push for change.\n\nSo, let's make a pact to work towards this dream together. Let's make a pact to believe in ourselves, to believe in each other, and to believe that together, we can create a world where everyone has access to the basic necessities of life.\n\nThank you.\"\u003e]]\n\n # Split the text into sentences\n sentences = text.split(\".\")\n\n # Loop through each sentence\n for sentence in sentences:\n # Remove any leading or trailing whitespace\n sentence = sentence.strip()\n\n # Check if the sentence is not empty\n if sentence:\n # Split the sentence into words\n words = sentence.split()\n\n # Loop through each word\n for word in words:\n # Check if the word is a keyword\n if word.lower() in keywords:\n # Increment the count for the keyword\n keyword_counts[word.lower()] += 1\n\n # Print the keyword counts\n for keyword, count in keyword_counts.items():\n print(f\"{keyword}: {count}\")\n```\n\nThis code uses a dictionary to store the keyword counts, where the keys are the keywords and the values are the counts. It then loops through each sentence in the text, splits it into words, and checks if each word is a keyword. If it is, it increments the count"}],"num_tokens":512,"num_input_tokens":4}