Update app.py
Browse files
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 |
-
|
22 |
-
csv_variable = csv_content
|
23 |
|
24 |
# Return selected_paper_info and CSV content
|
25 |
-
return selected_paper_info,
|
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(
|