Spaces:
Runtime error
Runtime error
fixed timestamp error
Browse files
app.py
CHANGED
|
@@ -189,6 +189,13 @@ def predict_depth(input_image):
|
|
| 189 |
if temp_file and os.path.exists(temp_file):
|
| 190 |
os.remove(temp_file)
|
| 191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
# Create the Gradio interface with appropriate input and output components.
|
| 193 |
last_updated = get_last_commit_timestamp()
|
| 194 |
|
|
@@ -217,11 +224,4 @@ iface = gr.Interface(
|
|
| 217 |
)
|
| 218 |
|
| 219 |
# Launch the Gradio interface with sharing enabled
|
| 220 |
-
iface.launch(share=True) # share=True allows you to share the interface with others.
|
| 221 |
-
|
| 222 |
-
def get_last_commit_timestamp():
|
| 223 |
-
try:
|
| 224 |
-
timestamp = subprocess.check_output(['git', 'log', '-1', '--format=%cd', '--date=iso']).decode('utf-8').strip()
|
| 225 |
-
return datetime.fromisoformat(timestamp).strftime("%Y-%m-%d %H:%M:%S")
|
| 226 |
-
except Exception:
|
| 227 |
-
return "Unknown"
|
|
|
|
| 189 |
if temp_file and os.path.exists(temp_file):
|
| 190 |
os.remove(temp_file)
|
| 191 |
|
| 192 |
+
def get_last_commit_timestamp():
|
| 193 |
+
try:
|
| 194 |
+
timestamp = subprocess.check_output(['git', 'log', '-1', '--format=%cd', '--date=iso']).decode('utf-8').strip()
|
| 195 |
+
return datetime.fromisoformat(timestamp).strftime("%Y-%m-%d %H:%M:%S")
|
| 196 |
+
except Exception:
|
| 197 |
+
return "Unknown"
|
| 198 |
+
|
| 199 |
# Create the Gradio interface with appropriate input and output components.
|
| 200 |
last_updated = get_last_commit_timestamp()
|
| 201 |
|
|
|
|
| 224 |
)
|
| 225 |
|
| 226 |
# Launch the Gradio interface with sharing enabled
|
| 227 |
+
iface.launch(share=True) # share=True allows you to share the interface with others.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|