Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -168,7 +168,7 @@ def process_image(image, project_name):
|
|
| 168 |
# Adjust the current time to local timezone with proper ISO 8601 format
|
| 169 |
now = datetime.now(local_timezone)
|
| 170 |
# Format the datetime with a colon in the timezone offset (e.g., +05:30)
|
| 171 |
-
local_time = now.strftime("%Y-%m-%dT%H:%M:%S") + now.strftime("%z")
|
| 172 |
|
| 173 |
# Create the Salesforce record with the image URL and AI prediction
|
| 174 |
record = {
|
|
@@ -249,5 +249,4 @@ with gr.Blocks(css="""
|
|
| 249 |
outputs=[output_text, upload_status, milestone, confidence, progress]
|
| 250 |
)
|
| 251 |
|
| 252 |
-
demo.launch(share=True)
|
| 253 |
-
|
|
|
|
| 168 |
# Adjust the current time to local timezone with proper ISO 8601 format
|
| 169 |
now = datetime.now(local_timezone)
|
| 170 |
# Format the datetime with a colon in the timezone offset (e.g., +05:30)
|
| 171 |
+
local_time = now.strftime("%Y-%m-%dT%H:%M:%S") + now.strftime("%z")[:-2] + ":" + now.strftime("%z")[-2:]
|
| 172 |
|
| 173 |
# Create the Salesforce record with the image URL and AI prediction
|
| 174 |
record = {
|
|
|
|
| 249 |
outputs=[output_text, upload_status, milestone, confidence, progress]
|
| 250 |
)
|
| 251 |
|
| 252 |
+
demo.launch(share=True)
|
|
|