Shrikrishna commited on
Commit
1879cc3
1 Parent(s): 74499d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -75,11 +75,11 @@ def extract_data(email,function_descriptions):
75
  )
76
 
77
  print(response)
78
- return response
79
 
80
  if st.button("Extract Data"):
81
- data = extract_data(email,function_descriptions)
82
- st.json(data)
83
 
84
 
85
 
 
75
  )
76
 
77
  print(response)
78
+ return response.choices[0]["message"]["function_call"]["arguments"]
79
 
80
  if st.button("Extract Data"):
81
+ arguments = extract_data(email,function_descriptions)
82
+ st.json(arguments)
83
 
84
 
85