joshuadunlop commited on
Commit
e93f242
·
verified ·
1 Parent(s): b11764c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -164,15 +164,15 @@ if reset:
164
  # Main app layout
165
  row_count = st.session_state.get("row_count", 1)
166
  for i in range(row_count):
167
- col1, col2 = st.columns(2) # Create two columns
168
-
 
169
  with col1:
170
- target_url_key = f"target_url_{i}"
171
- target_url = st.text_input(f"Enter the target URL {i + 1}", key=target_url_key)
172
-
 
173
  with col2:
174
- df_key = f"df_{i}"
175
- df = st.session_state.get(df_key)
176
  if df is not None:
177
  csv = convert_df_to_csv(df)
178
  st.download_button(
@@ -186,7 +186,6 @@ for i in range(row_count):
186
 
187
  # Generate and reset button logic
188
  generate_button = st.sidebar.button("Generate All")
189
-
190
  if generate_button:
191
  jobs = Queue()
192
  results = Queue()
 
164
  # Main app layout
165
  row_count = st.session_state.get("row_count", 1)
166
  for i in range(row_count):
167
+ col1, col2 = st.columns(2)
168
+ target_url_key = f"target_url_{i}"
169
+
170
  with col1:
171
+ st.text_input(f"Enter the target URL {i + 1}", key=target_url_key)
172
+
173
+ df_key = f"df_{i}"
174
+ df = st.session_state.get(df_key)
175
  with col2:
 
 
176
  if df is not None:
177
  csv = convert_df_to_csv(df)
178
  st.download_button(
 
186
 
187
  # Generate and reset button logic
188
  generate_button = st.sidebar.button("Generate All")
 
189
  if generate_button:
190
  jobs = Queue()
191
  results = Queue()