Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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]
|