Spaces:
Build error
Build error
Update app.py
Browse files171 unmodified lines172173174175176177171 unmodified lines# Get the public URLpublic_url = storage.child(filename).get_url(None)st.success(f"File '{file.name}' uploaded successfully!")return content,public_urlexcept Exception as e:171 unmodified lines172173174175176177178179180181182183171 unmodified lines# Get the public URLpublic_url = storage.child(filename).get_url(None)doc_id = str(uuid.uuid4())db.child("users").child(user_id).child("documents").child(doc_id).set({"name": file.name,"content_url": public_url # Link to the file in Firebase Storage})st.success(f"File '{file.name}' uploaded successfully!")return content,public_urlexcept Exception as e:
app.py+6