Spaces:
Sleeping
Sleeping
File size: 733 Bytes
5087167 4141211 e16bfc1 5087167 4141211 5087167 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import streamlit as st
from main import run_agent
st.set_page_config(page_title="CodeReview Buddy", layout="wide")
st.title("🤖 CodeReview Buddy (Production)")
st.write("App Loaded ✅") # DEBUG
prompt = st.text_area("Enter your prompt:")
if st.button("Run Agent"):
st.write("Button clicked ✅") # DEBUG
with st.spinner("Processing..."):
try:
result = run_agent(prompt)
st.write("Agent finished ✅") # DEBUG
st.write(result) # SEE RAW OUTPUT
except Exception as e:
st.error(f"Error: {e}")
st.stop()
st.subheader("Final Code")
st.code(result.get("code", ""))
st.subheader("Review")
st.write(result.get("review", "")) |