Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -157,6 +157,7 @@ def upload_image_to_hub(image_pil, prompt_text):
|
|
| 157 |
print(f"Error uploading image to Hub: {e}")
|
| 158 |
return None, None
|
| 159 |
finally:
|
|
|
|
| 160 |
|
| 161 |
def upload_image_to_private_hub(image_pil, prompt_text):
|
| 162 |
timestamp = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
|
|
@@ -178,6 +179,7 @@ def upload_image_to_private_hub(image_pil, prompt_text):
|
|
| 178 |
print(f"Error uploading image to private Hub: {e}")
|
| 179 |
return None
|
| 180 |
finally:
|
|
|
|
| 181 |
|
| 182 |
def make_html_table(caption):
|
| 183 |
formatted_caption = caption.replace("|-|", "\n")
|
|
|
|
| 157 |
print(f"Error uploading image to Hub: {e}")
|
| 158 |
return None, None
|
| 159 |
finally:
|
| 160 |
+
pass
|
| 161 |
|
| 162 |
def upload_image_to_private_hub(image_pil, prompt_text):
|
| 163 |
timestamp = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
|
|
|
|
| 179 |
print(f"Error uploading image to private Hub: {e}")
|
| 180 |
return None
|
| 181 |
finally:
|
| 182 |
+
pass
|
| 183 |
|
| 184 |
def make_html_table(caption):
|
| 185 |
formatted_caption = caption.replace("|-|", "\n")
|