phyloforfun commited on
Commit
dcf04c1
1 Parent(s): 5b7117f

file upload gallery

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -573,7 +573,7 @@ def display_image_gallery():
573
 
574
  # Embed the image with the determined width in the custom div
575
  img_html = f"""
576
- <div style='display: inline-block; padding: 10px; max-width: 50px;'>
577
  <img src='data:image/jpeg;base64,{base64_image}' alt='Image' style='max-width: 100%; height: auto;'>
578
  </div>
579
  """
@@ -584,10 +584,10 @@ def display_image_gallery():
584
  # The CSS to make the images display inline and be responsive
585
  css = """
586
  <style>
587
- @media (max-width: 50px) {
588
  .scrollable-image-container img {
589
  max-width: 100%;
590
- height: 300px;
591
  height: auto;
592
  }
593
  }
@@ -1134,6 +1134,7 @@ def content_tab_settings():
1134
  if selected_version not in versions:
1135
  selected_version = default_version
1136
  st.session_state.config['leafmachine']['project']['prompt_version'] = st.selectbox("Prompt Version", versions, index=versions.index(selected_version),label_visibility='collapsed')
 
1137
 
1138
  ### Input Images Local
1139
  with col_local_1:
 
573
 
574
  # Embed the image with the determined width in the custom div
575
  img_html = f"""
576
+ <div style='display: inline-block; padding: 10px; max-width: 100px;'>
577
  <img src='data:image/jpeg;base64,{base64_image}' alt='Image' style='max-width: 100%; height: auto;'>
578
  </div>
579
  """
 
584
  # The CSS to make the images display inline and be responsive
585
  css = """
586
  <style>
587
+ @media (max-width: 100px) {
588
  .scrollable-image-container img {
589
  max-width: 100%;
590
+ height: 400px;
591
  height: auto;
592
  }
593
  }
 
1134
  if selected_version not in versions:
1135
  selected_version = default_version
1136
  st.session_state.config['leafmachine']['project']['prompt_version'] = st.selectbox("Prompt Version", versions, index=versions.index(selected_version),label_visibility='collapsed')
1137
+ st.markdown("Several prompts are provided. Visit the 'Prompt Builder' tab to upload your own prompt. If you would like to make your prompt available to others or have the prompt in the dropdown by default, [please submit the yaml through this form.]()")
1138
 
1139
  ### Input Images Local
1140
  with col_local_1: