Spaces:
Sleeping
Sleeping
Zekun Wu
commited on
Commit
•
77b1cb5
1
Parent(s):
9e26b97
update
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ if uploaded_file is not None:
|
|
83 |
agent = GPTAgent(api_key, endpoint_url, deployment_name, api_version)
|
84 |
|
85 |
# Example processing step (adapt as needed)
|
86 |
-
df['Response'] = df['
|
87 |
|
88 |
st.write('Processed Data:', df.head())
|
89 |
|
|
|
83 |
agent = GPTAgent(api_key, endpoint_url, deployment_name, api_version)
|
84 |
|
85 |
# Example processing step (adapt as needed)
|
86 |
+
df['Response'] = df['prompt'].apply(lambda x: agent.invoke(x, temperature=0, max_tokens=150))
|
87 |
|
88 |
st.write('Processed Data:', df.head())
|
89 |
|