import streamlit as st | |
import json | |
def app(): | |
st.title('Gemini API Responses') | |
try: | |
# Load the responses from the file | |
with open('gemini_responses.json', 'r') as file: | |
responses = json.load(file) | |
except FileNotFoundError: | |
st.error("Responses file not found. Please run the main application first.") | |
return | |
for section_name, response_text in responses.items(): | |
st.subheader(f"{section_name.replace('_', ' ').title()}") | |
st.write(response_text) | |
if __name__ == "__main__": | |
app() | |