pavvloff commited on
Commit
755069b
1 Parent(s): af26a9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -41,6 +41,10 @@ def add_text(history, text):
41
  history = history + [(text, None)]
42
  return history, gr.Textbox(value="", interactive=False)
43
 
 
 
 
 
44
  def bot(history, api_kind, table_name, openai_key, rerank):
45
  top_k_rank = 4
46
  query = history[-1][0]
 
41
  history = history + [(text, None)]
42
  return history, gr.Textbox(value="", interactive=False)
43
 
44
+ def api_call(history, api_kind, table_name, openai_key, rerank):
45
+ for history, prompt_html in bot(history, api_kind, table_name, openai_key, rerank):
46
+ yield history
47
+
48
  def bot(history, api_kind, table_name, openai_key, rerank):
49
  top_k_rank = 4
50
  query = history[-1][0]