Spaces:
Running
Running
Zekun Wu
commited on
Commit
•
4bf4df2
1
Parent(s):
cc7e22e
update
Browse files
app.py
CHANGED
@@ -50,7 +50,10 @@ if st.session_state.model_submitted:
|
|
50 |
data = StringIO(st.session_state.uploaded_file.getvalue().decode("utf-8"))
|
51 |
df = pd.read_csv(data)
|
52 |
if df is not None:
|
53 |
-
|
|
|
|
|
|
|
54 |
# Initialize the correct agent based on model type
|
55 |
if model_type == 'AzureAgent':
|
56 |
agent = AzureAgent(st.session_state.api_key, st.session_state.endpoint_url, st.session_state.deployment_name)
|
|
|
50 |
data = StringIO(st.session_state.uploaded_file.getvalue().decode("utf-8"))
|
51 |
df = pd.read_csv(data)
|
52 |
if df is not None:
|
53 |
+
|
54 |
+
st.write('Data:', df)
|
55 |
+
|
56 |
+
if st.button('Process Data') and not st.session_state.data_processed:
|
57 |
# Initialize the correct agent based on model type
|
58 |
if model_type == 'AzureAgent':
|
59 |
agent = AzureAgent(st.session_state.api_key, st.session_state.endpoint_url, st.session_state.deployment_name)
|