drdata commited on
Commit
280e651
1 Parent(s): 4cd63bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -44
app.py CHANGED
@@ -37,18 +37,7 @@ model_names = [model.modelId[model.modelId.index("/") + 1:] for model in hfapi.l
37
 
38
  ABOUT_TEXT = "🤗 Hugging NFT - Generate NFT by OpenSea collection name."
39
  CONTACT_TEXT = """
40
- _Built by Aleksey Korshuk, Christian Cancedda and Hugging Face community with love_ ❤️
41
-
42
- [![Follow](https://img.shields.io/github/followers/AlekseyKorshuk?style=social)](https://github.com/AlekseyKorshuk)
43
- [![Follow](https://img.shields.io/twitter/follow/alekseykorshuk?style=social)](https://twitter.com/intent/follow?screen_name=alekseykorshuk)
44
-
45
- [![Follow](https://img.shields.io/github/followers/Chris1nexus?style=social)](https://github.com/Chris1nexus)
46
- [![Follow](https://img.shields.io/twitter/follow/chris_cancedda?style=social)](https://twitter.com/intent/follow?screen_name=chris_cancedda)
47
-
48
-
49
- Star project repository:
50
-
51
- [![GitHub stars](https://img.shields.io/github/stars/AlekseyKorshuk/huggingnft?style=social)](https://github.com/AlekseyKorshuk/huggingnft)
52
 
53
  """
54
  GENERATE_IMAGE_TEXT = "Generate NFT by selecting existing model based on OpenSea collection. You can create new model or imporve existing in few clicks — check [project repository](https://github.com/AlekseyKorshuk/huggingnft)."
@@ -96,8 +85,8 @@ model_names = clean_models(model_names, STOPWORDS)
96
 
97
  with st.sidebar:
98
  choose = option_menu("Hugging NFT",
99
- ["About", "Generate image", "Interpolation", "Collection2Collection", "Contact"],
100
- icons=['house', 'camera fill', 'bi bi-youtube', 'book', 'person lines fill'],
101
  menu_icon="app-indicator", default_index=0,
102
  styles={
103
  # "container": {"padding": "5!important", "background-color": "#fafafa", },
@@ -108,36 +97,7 @@ with st.sidebar:
108
  # "nav-link-selected": {"background-color": "#02ab21"},
109
  }
110
  )
111
- st.sidebar.markdown(
112
- """
113
- <style>
114
- .aligncenter {
115
- text-align: center;
116
- }
117
- </style>
118
- <p style='text-align: center'>
119
- <a href="https://github.com/AlekseyKorshuk/huggingnft" target="_blank">Project Repository</a>
120
- </p>
121
- <p class="aligncenter">
122
- <a href="https://github.com/AlekseyKorshuk/huggingnft" target="_blank">
123
- <img src="https://img.shields.io/github/stars/AlekseyKorshuk/huggingnft?style=social"/>
124
- </a>
125
- </p>
126
- <p class="aligncenter">
127
- <a href="https://twitter.com/alekseykorshuk" target="_blank">
128
- <img src="https://img.shields.io/twitter/follow/alekseykorshuk?style=social"/>
129
- </a>
130
- </p>
131
-
132
- <p class="aligncenter">
133
- <a href="https://twitter.com/chris_cancedda" target="_blank">
134
- <img src="https://img.shields.io/twitter/follow/chris_cancedda?style=social"/>
135
- </a>
136
- </p>
137
-
138
- """,
139
- unsafe_allow_html=True,
140
- )
141
 
142
  if choose == "About":
143
  README = requests.get("https://raw.githubusercontent.com/AlekseyKorshuk/huggingnft/main/README.md").text
 
37
 
38
  ABOUT_TEXT = "🤗 Hugging NFT - Generate NFT by OpenSea collection name."
39
  CONTACT_TEXT = """
40
+ _Built by Data ❤️
 
 
 
 
 
 
 
 
 
 
 
41
 
42
  """
43
  GENERATE_IMAGE_TEXT = "Generate NFT by selecting existing model based on OpenSea collection. You can create new model or imporve existing in few clicks — check [project repository](https://github.com/AlekseyKorshuk/huggingnft)."
 
85
 
86
  with st.sidebar:
87
  choose = option_menu("Hugging NFT",
88
+ ["About", "Generate image", "Interpolation", "Collection2Collection"],
89
+ icons=['house', 'camera fill', 'bi bi-youtube', 'book'],
90
  menu_icon="app-indicator", default_index=0,
91
  styles={
92
  # "container": {"padding": "5!important", "background-color": "#fafafa", },
 
97
  # "nav-link-selected": {"background-color": "#02ab21"},
98
  }
99
  )
100
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
  if choose == "About":
103
  README = requests.get("https://raw.githubusercontent.com/AlekseyKorshuk/huggingnft/main/README.md").text