Update app.py
Browse files
app.py
CHANGED
@@ -596,12 +596,12 @@ def check_custom_model(link):
|
|
596 |
# Assume it's a Hugging Face model path
|
597 |
return get_huggingface_safetensors(link)
|
598 |
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
|
606 |
css = '''
|
607 |
#gen_btn{height: 100%}
|
|
|
596 |
# Assume it's a Hugging Face model path
|
597 |
return get_huggingface_safetensors(link)
|
598 |
|
599 |
+
def update_history(new_image, history):
|
600 |
+
"""Updates the history gallery with the new image."""
|
601 |
+
if history is None:
|
602 |
+
history = []
|
603 |
+
history.insert(0, new_image)
|
604 |
+
return history
|
605 |
|
606 |
css = '''
|
607 |
#gen_btn{height: 100%}
|