rodolphethinks1 commited on
Commit
e8b3db5
·
verified ·
1 Parent(s): 9934f04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -48,8 +48,7 @@ def update_dataframe(html_content, dataframe):
48
  # Parse the content and create a new row
49
  parsed_data = parse_content(html_content)
50
  new_row = pd.DataFrame([parsed_data])
51
-
52
- # Concatenate the new row with the existing dataframe, keeping the 3 initial empty rows
53
  dataframe = pd.concat([dataframe, new_row], ignore_index=True)
54
 
55
  # Return the updated dataframe and the updated state
@@ -70,7 +69,6 @@ with gr.Blocks() as interface:
70
 
71
  # Dataframe display with horizontal scrolling allowed and vertical scrolling disabled
72
  parsed_dataframe = gr.Dataframe(
73
- value=initial_df,
74
  label="Parsed Data",
75
  interactive=False,
76
  show_label=False, # Remove label if you don't want it to show
 
48
  # Parse the content and create a new row
49
  parsed_data = parse_content(html_content)
50
  new_row = pd.DataFrame([parsed_data])
51
+
 
52
  dataframe = pd.concat([dataframe, new_row], ignore_index=True)
53
 
54
  # Return the updated dataframe and the updated state
 
69
 
70
  # Dataframe display with horizontal scrolling allowed and vertical scrolling disabled
71
  parsed_dataframe = gr.Dataframe(
 
72
  label="Parsed Data",
73
  interactive=False,
74
  show_label=False, # Remove label if you don't want it to show