Spaces:
Build error
Build error
Commit
·
74f61e5
1
Parent(s):
0ddad88
Added cwd path to uploaded file path
Browse files
app.py
CHANGED
|
@@ -138,7 +138,8 @@ def main():
|
|
| 138 |
}
|
| 139 |
print(os.getcwd())
|
| 140 |
st.write(os.getcwd())
|
| 141 |
-
|
|
|
|
| 142 |
with open(filepath, "wb") as temp_file:
|
| 143 |
temp_file.write(uploaded_file.read())
|
| 144 |
|
|
|
|
| 138 |
}
|
| 139 |
print(os.getcwd())
|
| 140 |
st.write(os.getcwd())
|
| 141 |
+
cwd = os.getcwd()
|
| 142 |
+
filepath = cwd+"/uploaded/"+uploaded_file.name
|
| 143 |
with open(filepath, "wb") as temp_file:
|
| 144 |
temp_file.write(uploaded_file.read())
|
| 145 |
|