Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,10 @@ 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 |
-
|
|
|
|
|
|
|
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 |
+
last = None
|
46 |
+
for output in bot(history, api_kind, table_name, openai_key, rerank):
|
47 |
+
last = output
|
48 |
+
return str(output)
|
49 |
|
50 |
def bot(history, api_kind, table_name, openai_key, rerank):
|
51 |
top_k_rank = 4
|