Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -226,6 +226,7 @@ def generate_outputs(role, supervisor_name, project_id, milestones, reflection):
|
|
226 |
if pdf_url:
|
227 |
suggestions += f"\n\n🔗 [Download PDF Report]({pdf_url})"
|
228 |
|
|
|
229 |
return checklist, suggestions, pdf_path, f'<a href="{pdf_url}" target="_blank">Download PDF</a>' if pdf_url else ""
|
230 |
|
231 |
# Gradio Interface
|
@@ -279,4 +280,4 @@ def create_interface():
|
|
279 |
|
280 |
if __name__ == "__main__":
|
281 |
app = create_interface()
|
282 |
-
app.launch()
|
|
|
226 |
if pdf_url:
|
227 |
suggestions += f"\n\n🔗 [Download PDF Report]({pdf_url})"
|
228 |
|
229 |
+
# Ensure that pdf_path is being passed correctly to gr.File component
|
230 |
return checklist, suggestions, pdf_path, f'<a href="{pdf_url}" target="_blank">Download PDF</a>' if pdf_url else ""
|
231 |
|
232 |
# Gradio Interface
|
|
|
280 |
|
281 |
if __name__ == "__main__":
|
282 |
app = create_interface()
|
283 |
+
app.launch()
|