code: def bot(history):
      data = {"user_input": history[-1][0].strip()}
      response = get_response(data, gen_url)
  
      if response["error"] != "":
          raise gr.Error(response["error"])
  
      history[-1][1] = response["response"]
      yield history
  
file_path: colossalai/applications/ColossalQA/examples/webui_demo/webui.py
imports: import argparse
  import json
  import os
  import requests
  import gradio
  from utils import DocAction
label_desc: Use image node_id 5 for calling a global function with example usage: bot(history) without return types