Spaces:
Sleeping
Sleeping
NCTCMumbai
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -46,6 +46,7 @@ examples = ['My transhipment cargo is missing',
|
|
46 |
def add_text(history, text):
|
47 |
history = [] if history is None else history
|
48 |
history = history + [(text, None)]
|
|
|
49 |
return history, gr.Textbox(value="", interactive=False)
|
50 |
|
51 |
|
@@ -54,6 +55,7 @@ def bot(history, api_kind):
|
|
54 |
top_k_rank = 5
|
55 |
query = history[-1][0]
|
56 |
print('history[-1][0]',history[-1][0])
|
|
|
57 |
|
58 |
if not query:
|
59 |
gr.Warning("Please submit a non-empty string as a prompt")
|
|
|
46 |
def add_text(history, text):
|
47 |
history = [] if history is None else history
|
48 |
history = history + [(text, None)]
|
49 |
+
print('add_text function done..returning history' ,history)
|
50 |
return history, gr.Textbox(value="", interactive=False)
|
51 |
|
52 |
|
|
|
55 |
top_k_rank = 5
|
56 |
query = history[-1][0]
|
57 |
print('history[-1][0]',history[-1][0])
|
58 |
+
print('api kind ',api_kind)
|
59 |
|
60 |
if not query:
|
61 |
gr.Warning("Please submit a non-empty string as a prompt")
|