Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,13 +64,14 @@ def run_shell_commands():
|
|
| 64 |
# List the contents of the results/cmp directory
|
| 65 |
cmp_contents = subprocess.run("dir results\\cmp", shell=True, capture_output=True, text=True)
|
| 66 |
if cmp_contents.returncode != 0:
|
| 67 |
-
st.error(f"Error listing contents of results/cmp: {cmp_contents.stderr}")
|
| 68 |
return ""
|
| 69 |
return cmp_contents.stdout
|
| 70 |
|
| 71 |
# Start Streamlit app
|
| 72 |
st.title('Image Enhancer')
|
| 73 |
st.write('This is a simple web app to enhance the quality of images')
|
|
|
|
| 74 |
|
| 75 |
# Ask the user to input a file
|
| 76 |
uploaded_file = st.file_uploader("Choose an image...", type="jpg")
|
|
|
|
| 64 |
# List the contents of the results/cmp directory
|
| 65 |
cmp_contents = subprocess.run("dir results\\cmp", shell=True, capture_output=True, text=True)
|
| 66 |
if cmp_contents.returncode != 0:
|
| 67 |
+
#st.error(f"Error listing contents of results/cmp: {cmp_contents.stderr}")
|
| 68 |
return ""
|
| 69 |
return cmp_contents.stdout
|
| 70 |
|
| 71 |
# Start Streamlit app
|
| 72 |
st.title('Image Enhancer')
|
| 73 |
st.write('This is a simple web app to enhance the quality of images')
|
| 74 |
+
st.write('Kindly wait for 1-2 minutes after uploading a photo 🙂')
|
| 75 |
|
| 76 |
# Ask the user to input a file
|
| 77 |
uploaded_file = st.file_uploader("Choose an image...", type="jpg")
|