careerv3 / newpage.py
ombhojane's picture
Upload 88 files
8d404bc verified
raw
history blame contribute delete
563 Bytes
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()