add print function to debug
Browse files
app.py
CHANGED
|
@@ -51,6 +51,7 @@ def load_collection(domain):
|
|
| 51 |
|
| 52 |
|
| 53 |
def respond(message, history, system_message, domain, model_name, max_tokens, temperature, top_p):
|
|
|
|
| 54 |
try:
|
| 55 |
if domain.lower() == "corismoney":
|
| 56 |
system_message = (
|
|
@@ -143,6 +144,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=".gradio-container {background-color:
|
|
| 143 |
send_button = gr.Button("🚀 Envoyer", variant="primary")
|
| 144 |
|
| 145 |
def chat_submit(msg, history, domain, model_name, max_tokens, temperature, top_p):
|
|
|
|
| 146 |
return respond(msg, history, "", domain, model_name, max_tokens, temperature, top_p)
|
| 147 |
|
| 148 |
send_button.click(
|
|
|
|
| 51 |
|
| 52 |
|
| 53 |
def respond(message, history, system_message, domain, model_name, max_tokens, temperature, top_p):
|
| 54 |
+
print("Enter to the respond function")
|
| 55 |
try:
|
| 56 |
if domain.lower() == "corismoney":
|
| 57 |
system_message = (
|
|
|
|
| 144 |
send_button = gr.Button("🚀 Envoyer", variant="primary")
|
| 145 |
|
| 146 |
def chat_submit(msg, history, domain, model_name, max_tokens, temperature, top_p):
|
| 147 |
+
print("Enter in chat submit function")
|
| 148 |
return respond(msg, history, "", domain, model_name, max_tokens, temperature, top_p)
|
| 149 |
|
| 150 |
send_button.click(
|