commented out specials
Browse files- controller.py +2 -1
- view/app_chat.py +4 -2
controller.py
CHANGED
|
@@ -49,4 +49,5 @@ class Controller:
|
|
| 49 |
|
| 50 |
result = cut_text_after_keyword(text, "Human:")
|
| 51 |
print(result)
|
| 52 |
-
return result
|
|
|
|
|
|
| 49 |
|
| 50 |
result = cut_text_after_keyword(text, "Human:")
|
| 51 |
print(result)
|
| 52 |
+
return result
|
| 53 |
+
|
view/app_chat.py
CHANGED
|
@@ -71,7 +71,8 @@ def app_chat(controller):
|
|
| 71 |
chat_respone = controller.handle_submission_chat(user_message, "Agent Tool produced a dict")
|
| 72 |
st.write(chat_respone)
|
| 73 |
st.json(response)
|
| 74 |
-
|
|
|
|
| 75 |
chat_respone = controller.handle_submission_chat(user_message, "Agent Tool produced a st.graphics_altair.AltairChart")
|
| 76 |
st.write(chat_respone)
|
| 77 |
st.altair_chart(response)
|
|
@@ -98,7 +99,8 @@ def app_chat(controller):
|
|
| 98 |
elif isinstance(response, st.graphics_vega_lite.VegaLiteChart):
|
| 99 |
chat_respone = controller.handle_submission_chat(user_message, "Agent Tool produced a VegaLiteChart")
|
| 100 |
st.write(chat_respone)
|
| 101 |
-
st.vega_lite_chart(response)
|
|
|
|
| 102 |
else:
|
| 103 |
st.warning("Unrecognized response type. Please try again. e.g. Generate an image of a flying horse.")
|
| 104 |
|
|
|
|
| 71 |
chat_respone = controller.handle_submission_chat(user_message, "Agent Tool produced a dict")
|
| 72 |
st.write(chat_respone)
|
| 73 |
st.json(response)
|
| 74 |
+
|
| 75 |
+
""" elif isinstance(response, st.graphics_altair.AltairChart):
|
| 76 |
chat_respone = controller.handle_submission_chat(user_message, "Agent Tool produced a st.graphics_altair.AltairChart")
|
| 77 |
st.write(chat_respone)
|
| 78 |
st.altair_chart(response)
|
|
|
|
| 99 |
elif isinstance(response, st.graphics_vega_lite.VegaLiteChart):
|
| 100 |
chat_respone = controller.handle_submission_chat(user_message, "Agent Tool produced a VegaLiteChart")
|
| 101 |
st.write(chat_respone)
|
| 102 |
+
st.vega_lite_chart(response) """
|
| 103 |
+
|
| 104 |
else:
|
| 105 |
st.warning("Unrecognized response type. Please try again. e.g. Generate an image of a flying horse.")
|
| 106 |
|