pavvloff commited on
Commit
bfdaefe
1 Parent(s): 1e2c43a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def add_text(history, text):
42
  return history, gr.Textbox(value="", interactive=False)
43
 
44
  def api_call(history, api_kind, table_name, openai_key, rerank):
45
- return ' '.join([history[1] for history, prompt_html in bot(history, api_kind, table_name, openai_key, rerank)])
46
 
47
  def bot(history, api_kind, table_name, openai_key, rerank):
48
  top_k_rank = 4
 
42
  return history, gr.Textbox(value="", interactive=False)
43
 
44
  def api_call(history, api_kind, table_name, openai_key, rerank):
45
+ return ' '.join([str(output[0][1]) for output in bot(history, api_kind, table_name, openai_key, rerank)])
46
 
47
  def bot(history, api_kind, table_name, openai_key, rerank):
48
  top_k_rank = 4