code: def generate_llama2_response(prompt_input):
      string_dialogue = "Question: What are the names of the planets in the solar system? Answer: "
      headers = {
          "Content-type": "application/json",
          "Accept": "text/plain",
      }
      url = "http://127.0.0.1:8080/predictions/llamacpp"
      data = json.dumps(
          {
              "prompt": prompt_input,
              "max_tokens": max_tokens,
              "top_p": top_p,
              "temperature": temperature,
          }
      )
  
      res = requests.post(url=url, data=data, headers=headers)
  
      return res.text
  
imports: import json
  import requests
  import streamlit
label_desc: Use image node_id 2 for calling a global function with example usage: generate_llama2_response(prompt_input) and returns: res