Spaces:
Running
Running
sc_ma
commited on
Commit
•
26d461c
1
Parent(s):
ea7f72d
Testing output file error in Spaces.
Browse files- auto_backgrounds.py +1 -4
- auto_draft.py +1 -1
auto_backgrounds.py
CHANGED
@@ -76,9 +76,6 @@ def pipeline(paper, section, save_to_path, model):
|
|
76 |
|
77 |
|
78 |
def generate_backgrounds(title, description="", template="ICLR2022", model="gpt-4"):
|
79 |
-
|
80 |
-
return make_archive("utils", "output.zip")
|
81 |
-
|
82 |
paper = {}
|
83 |
paper_body = {}
|
84 |
|
@@ -121,7 +118,7 @@ def generate_backgrounds(title, description="", template="ICLR2022", model="gpt-
|
|
121 |
print(f"Failed to generate {section} due to the error: {e}")
|
122 |
print(f"The paper {title} has been generated. Saved to {save_to_path}.")
|
123 |
# shutil.make_archive("output.zip", 'zip', save_to_path)
|
124 |
-
return make_archive(
|
125 |
|
126 |
if __name__ == "__main__":
|
127 |
title = "Reinforcement Learning"
|
|
|
76 |
|
77 |
|
78 |
def generate_backgrounds(title, description="", template="ICLR2022", model="gpt-4"):
|
|
|
|
|
|
|
79 |
paper = {}
|
80 |
paper_body = {}
|
81 |
|
|
|
118 |
print(f"Failed to generate {section} due to the error: {e}")
|
119 |
print(f"The paper {title} has been generated. Saved to {save_to_path}.")
|
120 |
# shutil.make_archive("output.zip", 'zip', save_to_path)
|
121 |
+
return make_archive(destination_folder, "output.zip")
|
122 |
|
123 |
if __name__ == "__main__":
|
124 |
title = "Reinforcement Learning"
|
auto_draft.py
CHANGED
@@ -132,7 +132,7 @@ def generate_draft(title, description="", template="ICLR2022", model="gpt-4"):
|
|
132 |
except Exception as e:
|
133 |
print(f"Failed to generate {section} due to the error: {e}")
|
134 |
print(f"The paper {title} has been generated. Saved to {save_to_path}.")
|
135 |
-
return make_archive(
|
136 |
|
137 |
if __name__ == "__main__":
|
138 |
# title = "Training Adversarial Generative Neural Network with Adaptive Dropout Rate"
|
|
|
132 |
except Exception as e:
|
133 |
print(f"Failed to generate {section} due to the error: {e}")
|
134 |
print(f"The paper {title} has been generated. Saved to {save_to_path}.")
|
135 |
+
return make_archive(destination_folder, "output.zip")
|
136 |
|
137 |
if __name__ == "__main__":
|
138 |
# title = "Training Adversarial Generative Neural Network with Adaptive Dropout Rate"
|