Spaces:
Running
Running
File size: 860 Bytes
66e260e |
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 |
#enhance.py
from dotenv import load_dotenv
from components.functions import Functions
import streamlit as st
from components.prompts import resume_enhance
def run_enhance(llm,doc='',jd=''):
load_dotenv()
enhance = Functions()
st.write("Providing bullet points for enhancing the given paragraph.")
bullet = st.text_input("Paragraph for bullet points")
submit = st.button("Provide Bullet Points")
if submit:
if doc is not None:
with st.spinner("Processing..."):
response=enhance.get_gemini_response(llm=llm,template=resume_enhance,doc=doc,input_text=jd, info=bullet)
st.subheader("The Repsonse is")
st.write(response)
else:
st.write("Please upload the resume")
if __name__ == "__main__":
enhance = Functions()
run_enhance(enhance.model()) |