ssk3232 commited on
Commit
a167124
1 Parent(s): 25d5cc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -15,14 +15,11 @@ def predict_and_download(positive_csv_file, unlabelled_csv_file, n, text):
15
  # Get the CSV data from the buffer
16
  csv_content = csv_buffer.getvalue()
17
 
18
- # Close the buffer
19
- csv_buffer.close()
20
 
21
- # Save CSV content to a variable
22
- csv_variable = csv_content
23
 
24
  # Return selected_paper_info and CSV content
25
- return selected_paper_info, csv_variable
26
 
27
  # Create the interface
28
  iface = gr.Interface(
 
15
  # Get the CSV data from the buffer
16
  csv_content = csv_buffer.getvalue()
17
 
 
 
18
 
19
+
 
20
 
21
  # Return selected_paper_info and CSV content
22
+ return selected_paper_info, csv_content
23
 
24
  # Create the interface
25
  iface = gr.Interface(