Spaces:
Runtime error
Runtime error
Update app.py
#2
by
yttanaka
- opened
app.py
CHANGED
@@ -36,7 +36,7 @@ def respond(message, history):
|
|
36 |
|
37 |
except Exception as error:
|
38 |
response_data = f"ERROR status_code: {type(error).__name__}"
|
39 |
-
|
40 |
|
41 |
# print(response.json())
|
42 |
return response_data
|
@@ -52,7 +52,7 @@ demo = gr.ChatInterface(
|
|
52 |
chatbot=gr.Chatbot(show_label=False, container=False, show_copy_button=True, bubble_full_width=True),
|
53 |
textbox=gr.Textbox(placeholder="Ask me a question",
|
54 |
container=False, scale=7),
|
55 |
-
title="Databricks LLM RAG
|
56 |
description="This chatbot is a demo example for the dbdemos llm chatbot. <br>This content is provided as a LLM RAG educational example, without support. It is using llama2, can hallucinate and should not be used as production content.<br>Please review our dbdemos license and terms for more details.",
|
57 |
examples=[["How can I start a Databricks cluster?"],
|
58 |
["What is a Databricks Cluster Policy?"],
|
|
|
36 |
|
37 |
except Exception as error:
|
38 |
response_data = f"ERROR status_code: {type(error).__name__}"
|
39 |
+
+ str(response.status_code) + " response:" + response.text
|
40 |
|
41 |
# print(response.json())
|
42 |
return response_data
|
|
|
52 |
chatbot=gr.Chatbot(show_label=False, container=False, show_copy_button=True, bubble_full_width=True),
|
53 |
textbox=gr.Textbox(placeholder="Ask me a question",
|
54 |
container=False, scale=7),
|
55 |
+
title="Databricks LLM RAGのデモです",
|
56 |
description="This chatbot is a demo example for the dbdemos llm chatbot. <br>This content is provided as a LLM RAG educational example, without support. It is using llama2, can hallucinate and should not be used as production content.<br>Please review our dbdemos license and terms for more details.",
|
57 |
examples=[["How can I start a Databricks cluster?"],
|
58 |
["What is a Databricks Cluster Policy?"],
|