mbosse99 commited on
Commit
413f4ad
·
verified ·
1 Parent(s): d37f3cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -19
app.py CHANGED
@@ -22,7 +22,6 @@ def create_meeting(input_params: CreateParams) -> dict:
22
 
23
  def get_summary(input_params) -> dict:
24
  print(input_params)
25
- print("nach params print")
26
  try:
27
  url = f"{os.environ.get('BASE_API')}/api/create-interview-summary"
28
  response = requests.post(url=url,data=input_params)
@@ -95,9 +94,9 @@ selected_time = st.time_input("Starting time of the appointment", value=rounded_
95
  time_zone = st.selectbox("Please select your time zone (based on UTC time)",options=["+10","+9","+8","+7","+6","+5","+4","+3","+2","+1","0","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10"],index=10, key="time_option")
96
  selected_duration = st.select_slider("Duration of the appointment in minutes",[15,30,45,60],value=30)
97
  subject_input = st.text_input("Enter the subject of the meeting")
98
- recruiter_mail = st.text_input("Please enter the mail of the recruiter", key="recruiter_mail")
99
- client_mail = st.text_input("Please enter the mail of the client", key="client_mail")
100
- candidate_mail = st.text_input("Please enter the mail of the candidate", key="candidate_mail")
101
 
102
  if not st.session_state["appointment_response"]:
103
  if st.button("Create appointment") or st.session_state["appointment_response"]:
@@ -118,16 +117,16 @@ if not st.session_state["appointment_response"]:
118
  },
119
  "subject": subject_input,
120
  "recruiter": {
121
- "email": st.session_state["recruiter_mail"],
122
- "name": st.session_state["recruiter_mail"]
123
  },
124
  "client": {
125
- "email": st.session_state["client_mail"],
126
- "name": st.session_state["client_mail"]
127
  },
128
  "candidate": {
129
- "email": st.session_state["candidate_mail"],
130
- "name": st.session_state["candidate_mail"]
131
  }
132
  })
133
  appointment_response = create_meeting(request_params)
@@ -146,16 +145,16 @@ if not st.session_state["appointment_response"]:
146
  environment=str(["us"]),
147
  process_status="interview_scheduled",
148
  recruiter=Attendee(
149
- email=str(st.session_state["recruiter_mail"]),
150
- name=str(st.session_state["recruiter_mail"])
151
  ),
152
  client=Attendee(
153
- email=str(st.session_state["client_mail"]),
154
- name=str(st.session_state["client_mail"])
155
  ),
156
  candidate=Attendee(
157
- email=str(st.session_state["candidate_mail"]),
158
- name=str(st.session_state["candidate_mail"])
159
  ),
160
  summary_recruiter="",
161
  summary_client="",
@@ -180,8 +179,6 @@ if not st.session_state["appointment_response"]:
180
  st.warning("Please enter the subject of the meeting")
181
  else:
182
  with st.spinner("Creating the summary..."):
183
- print(st.session_state["subject_input"])
184
- print(isinstance(st.session_state["subject_input"],str))
185
- print("bis hierhin gekommen")
186
  summary_response = get_summary(json.dumps({"meeting_id": str(st.session_state["appointment_response"]["zoom_meeting"]["id"])}))
 
187
  st.write(summary_response)
 
22
 
23
  def get_summary(input_params) -> dict:
24
  print(input_params)
 
25
  try:
26
  url = f"{os.environ.get('BASE_API')}/api/create-interview-summary"
27
  response = requests.post(url=url,data=input_params)
 
94
  time_zone = st.selectbox("Please select your time zone (based on UTC time)",options=["+10","+9","+8","+7","+6","+5","+4","+3","+2","+1","0","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10"],index=10, key="time_option")
95
  selected_duration = st.select_slider("Duration of the appointment in minutes",[15,30,45,60],value=30)
96
  subject_input = st.text_input("Enter the subject of the meeting")
97
+ # recruiter_mail = st.text_input("Please enter the mail of the recruiter", key="recruiter_mail")
98
+ # client_mail = st.text_input("Please enter the mail of the client", key="client_mail")
99
+ # candidate_mail = st.text_input("Please enter the mail of the candidate", key="candidate_mail")
100
 
101
  if not st.session_state["appointment_response"]:
102
  if st.button("Create appointment") or st.session_state["appointment_response"]:
 
117
  },
118
  "subject": subject_input,
119
  "recruiter": {
120
+ "email": "",#st.session_state["recruiter_mail"],
121
+ "name": ""#st.session_state["recruiter_mail"]
122
  },
123
  "client": {
124
+ "email": "",#st.session_state["client_mail"],
125
+ "name": ""#st.session_state["client_mail"]
126
  },
127
  "candidate": {
128
+ "email": "",#st.session_state["candidate_mail"],
129
+ "name": ""#st.session_state["candidate_mail"]
130
  }
131
  })
132
  appointment_response = create_meeting(request_params)
 
145
  environment=str(["us"]),
146
  process_status="interview_scheduled",
147
  recruiter=Attendee(
148
+ email="",#str(st.session_state["recruiter_mail"]),
149
+ name=""#str(st.session_state["recruiter_mail"])
150
  ),
151
  client=Attendee(
152
+ email="",#str(st.session_state["client_mail"]),
153
+ name=""#str(st.session_state["client_mail"])
154
  ),
155
  candidate=Attendee(
156
+ email="",#str(st.session_state["candidate_mail"]),
157
+ name=""#str(st.session_state["candidate_mail"])
158
  ),
159
  summary_recruiter="",
160
  summary_client="",
 
179
  st.warning("Please enter the subject of the meeting")
180
  else:
181
  with st.spinner("Creating the summary..."):
 
 
 
182
  summary_response = get_summary(json.dumps({"meeting_id": str(st.session_state["appointment_response"]["zoom_meeting"]["id"])}))
183
+ #summary_response = get_summary(json.dumps({"meeting_id": str(85662554678)}))
184
  st.write(summary_response)