Vaibhav84 commited on
Commit
4ead886
·
1 Parent(s): 97301c2
Files changed (1) hide show
  1. app.py +23 -1
app.py CHANGED
@@ -129,6 +129,28 @@ def GetMatchProfileByJobId(JobId : int):
129
  df = pd.DataFrame(dataJson)
130
  return parse_csv(df)
131
 
132
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  #return JSONResponse(content={"message": "Here's your interdimensional portal." , "mes1":"data2"})
134
  #https://vaibhav84-resumeapi.hf.space/docs
 
129
  df = pd.DataFrame(dataJson)
130
  return parse_csv(df)
131
 
132
+ from openai import OpenAI
133
+ @app.get("/GetOpenAPIResponse/")
134
+ def GetOpenAPIResponse():
135
+ client = OpenAI(api_key='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')
136
+
137
+ response = client.chat.completions.create(
138
+ model="gpt-3.5-turbo",
139
+ messages=[
140
+ {
141
+ "role": "system",
142
+ "content": "Summarize content you are provided in a single paragraph."
143
+ },
144
+ {
145
+ "role": "user",
146
+ "content": "Working as a secondary application owner with the Development team, on troubleshooting, analyzing data stored, its inbound and outbound core functionality using SQL Scripts and commands. Synchronized various records in the static Data Source (SSSDR), and solving issues related to the running SQL Server Instance and infrastructure. • Worked as a Database Integration Specialist with experience in Autosys Job Automation, worked towards Jil file management and troubleshooting issues related to the data administration, created end to end application flow PARP and DIRP Cutover with all server specifications, database nodes and overseeing the entire infra level application flow.• Worked as a Support application developer, analyzing issues and performing"
147
+ +"troubleshooting steps and handled exceptions through exception handling mechanism in Java."
148
+ }
149
+ ],
150
+ temperature=0.7,
151
+ max_tokens=64,
152
+ top_p=1
153
+ )
154
+ print(response.choices[0].message.content)
155
  #return JSONResponse(content={"message": "Here's your interdimensional portal." , "mes1":"data2"})
156
  #https://vaibhav84-resumeapi.hf.space/docs