Spaces:
Running
Running
Create pages/ai_explanations.py
Browse files- pages/ai_explanations.py +11 -0
pages/ai_explanations.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from utils.openai_utils import get_ai_explanation
|
3 |
+
|
4 |
+
def show_ai_explanations():
|
5 |
+
st.title("Ask AI for Machine Learning Explanations")
|
6 |
+
|
7 |
+
user_question = st.text_input("Ask a question about machine learning:")
|
8 |
+
|
9 |
+
if st.button("Get Explanation"):
|
10 |
+
explanation = get_ai_explanation(user_question)
|
11 |
+
st.write(explanation)
|