Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,9 @@ from typing import List
|
|
| 9 |
# ---- Setup Groq Client ---- #
|
| 10 |
client = Groq(api_key=("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"))
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# ---- Load and Hardcode CSV Data ---- #
|
| 13 |
@st.cache_data
|
| 14 |
def load_data():
|
|
@@ -53,7 +56,6 @@ def get_optimization_recommendation(prompt: str) -> str:
|
|
| 53 |
return response.choices[0].message.content
|
| 54 |
|
| 55 |
# ---- Streamlit App ---- #
|
| 56 |
-
st.set_page_config(page_title="🚦 Traffic Optimization RAG App")
|
| 57 |
st.title("🚦 Real-Time Traffic Optimization using RAG + Groq")
|
| 58 |
|
| 59 |
# ---- Data Visualization ---- #
|
|
@@ -102,4 +104,4 @@ if user_query:
|
|
| 102 |
st.write(result)
|
| 103 |
|
| 104 |
st.markdown("---")
|
| 105 |
-
st.caption("🔁 This app analyzes traffic data using RAG + Groq and visualizes traffic
|
|
|
|
| 9 |
# ---- Setup Groq Client ---- #
|
| 10 |
client = Groq(api_key=("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"))
|
| 11 |
|
| 12 |
+
# ---- Streamlit App Config ---- #
|
| 13 |
+
st.set_page_config(page_title="🚦 Traffic Optimization RAG App")
|
| 14 |
+
|
| 15 |
# ---- Load and Hardcode CSV Data ---- #
|
| 16 |
@st.cache_data
|
| 17 |
def load_data():
|
|
|
|
| 56 |
return response.choices[0].message.content
|
| 57 |
|
| 58 |
# ---- Streamlit App ---- #
|
|
|
|
| 59 |
st.title("🚦 Real-Time Traffic Optimization using RAG + Groq")
|
| 60 |
|
| 61 |
# ---- Data Visualization ---- #
|
|
|
|
| 104 |
st.write(result)
|
| 105 |
|
| 106 |
st.markdown("---")
|
| 107 |
+
st.caption("🔁 This app analyzes traffic data using RAG + Groq and visualizes traffic patterns.")
|