Spaces:
Runtime error
Runtime error
Shrikrishna
commited on
Commit
•
1879cc3
1
Parent(s):
74499d7
Update app.py
Browse files
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 |
-
|
82 |
-
st.json(
|
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 |
|