Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -90,100 +90,6 @@ for name in url_names:
|
|
90 |
|
91 |
#url_emojis[:5], url_names[:5] # Display the first 5 URL names with their associated emojis
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
# List of URLs provided by the user
|
96 |
-
urls = [
|
97 |
-
"https://huggingface.co/spaces/awacke1/CB-GR-Chatbot-Blenderbot",
|
98 |
-
"https://huggingface.co/spaces/awacke1/TTS-STT-Blocks",
|
99 |
-
"https://huggingface.co/spaces/awacke1/Prompt-Refinery-Text-to-Image-Generation",
|
100 |
-
"https://huggingface.co/spaces/awacke1/Video-Summary",
|
101 |
-
"https://huggingface.co/spaces/awacke1/AI-MovieMaker-Comedy",
|
102 |
-
"https://huggingface.co/spaces/awacke1/ChatGPT-Memory-Chat-Story-Generator",
|
103 |
-
"https://huggingface.co/spaces/awacke1/CloneAnyVoice",
|
104 |
-
"https://huggingface.co/spaces/awacke1/ChatGPT-Streamlit-2",
|
105 |
-
"https://huggingface.co/spaces/awacke1/WikipediaUltimateAISearch",
|
106 |
-
"https://huggingface.co/spaces/awacke1/RLHF.Cognitive.Episodic.Semantic.Memory",
|
107 |
-
"https://huggingface.co/spaces/awacke1/Memory-Shared",
|
108 |
-
"https://huggingface.co/spaces/awacke1/VideoSwap",
|
109 |
-
"https://huggingface.co/spaces/awacke1/AI-Wikipedia-Search",
|
110 |
-
"https://huggingface.co/spaces/awacke1/AutoMLUsingStreamlit-Plotly",
|
111 |
-
"https://huggingface.co/spaces/awacke1/NLP-Lyric-Chorus-Image",
|
112 |
-
"https://huggingface.co/spaces/awacke1/OpenAssistant-Chatbot-FTW-Open-Source",
|
113 |
-
"https://huggingface.co/spaces/awacke1/ChatGPTStreamlit7",
|
114 |
-
"https://huggingface.co/spaces/awacke1/MultiPDF-QA-ChatGPT-Langchain",
|
115 |
-
"https://huggingface.co/spaces/awacke1/SOTA-Plan",
|
116 |
-
"https://huggingface.co/spaces/awacke1/AIandSmartTools",
|
117 |
-
"https://huggingface.co/spaces/awacke1/3DVirtualFood",
|
118 |
-
"https://huggingface.co/spaces/awacke1/Gradio-Gallery-Health-Medical-Icon-Sets",
|
119 |
-
"https://huggingface.co/spaces/awacke1/DatasetAnalyzer",
|
120 |
-
"https://huggingface.co/spaces/awacke1/PrompTart",
|
121 |
-
"https://huggingface.co/spaces/awacke1/sileod-deberta-v3-base-tasksource-nli",
|
122 |
-
"https://huggingface.co/spaces/awacke1/File-Memory-Operations-Human-Feedback-Gradio",
|
123 |
-
"https://huggingface.co/spaces/awacke1/Bloom.Big.Science.Continual.Generator",
|
124 |
-
"https://huggingface.co/spaces/awacke1/Ontology-Gradio",
|
125 |
-
"https://huggingface.co/spaces/awacke1/HTML5-Aframe-3dMap-Flight",
|
126 |
-
"https://huggingface.co/spaces/awacke1/Bloom.Generative.Writer",
|
127 |
-
"https://huggingface.co/spaces/awacke1/Voice-ChatGPT-Streamlit-12",
|
128 |
-
"https://huggingface.co/spaces/awacke1/HTML5-AR-VR",
|
129 |
-
"https://huggingface.co/spaces/awacke1/AnimationAI",
|
130 |
-
"https://huggingface.co/spaces/awacke1/GenerativeWordsandImages",
|
131 |
-
"https://huggingface.co/spaces/awacke1/AR-VR-IOT-Demo",
|
132 |
-
"https://huggingface.co/spaces/awacke1/ArtStyleFoodsandNutrition",
|
133 |
-
"https://huggingface.co/spaces/awacke1/CarePlanQnAWithContext",
|
134 |
-
"https://huggingface.co/spaces/awacke1/VideoSummaryYoutube3",
|
135 |
-
"https://huggingface.co/spaces/awacke1/AW-01ST-CSV-Dataset-Analyzer",
|
136 |
-
"https://huggingface.co/spaces/awacke1/Try.Playing.Learning.Sharing.On.This",
|
137 |
-
"https://huggingface.co/spaces/awacke1/google-flan-t5-base",
|
138 |
-
"https://huggingface.co/spaces/awacke1/PubMed-Parrot-Paraphraser-on-T5",
|
139 |
-
"https://huggingface.co/spaces/awacke1/Writing-Grammar-And-Paraphrase-w-Pegasus",
|
140 |
-
"https://huggingface.co/spaces/awacke1/runwayml-stable-diffusion-v1-5",
|
141 |
-
"https://huggingface.co/spaces/awacke1/DockerGoFlanT5",
|
142 |
-
"https://huggingface.co/spaces/awacke1/GradioContinualGenerator",
|
143 |
-
"https://huggingface.co/spaces/awacke1/StreamlitSuperPowerCheatSheet"
|
144 |
-
]
|
145 |
-
|
146 |
-
# Extract the last part of each URL (after the last '/') to serve as the name of the button
|
147 |
-
url_names = [url.split('/')[-1] for url in urls]
|
148 |
-
|
149 |
-
# Associate each URL with a relevant emoji based on keywords in its name
|
150 |
-
emoji_mapping = {
|
151 |
-
"Chatbot": "π€",
|
152 |
-
"TTS": "π£οΈ",
|
153 |
-
"STT": "π",
|
154 |
-
"Video": "π₯",
|
155 |
-
"MovieMaker": "πΏ",
|
156 |
-
"ChatGPT": "π¬",
|
157 |
-
"Voice": "ποΈ",
|
158 |
-
"Wikipedia": "π",
|
159 |
-
"Memory": "π§ ",
|
160 |
-
"AI": "π§ ",
|
161 |
-
"OpenAssistant": "π€",
|
162 |
-
"3D": "πΆοΈ",
|
163 |
-
"AR": "π",
|
164 |
-
"VR": "πΆοΈ",
|
165 |
-
"Animation": "ποΈ",
|
166 |
-
"Dataset": "π",
|
167 |
-
"Gradio": "π»",
|
168 |
-
"HTML5": "π",
|
169 |
-
"Writing": "βοΈ",
|
170 |
-
"Grammar": "ποΈ",
|
171 |
-
"Paraphrase": "π",
|
172 |
-
"Streamlit": "π "
|
173 |
-
}
|
174 |
-
|
175 |
-
# Map each URL name to its most relevant emoji
|
176 |
-
url_emojis = []
|
177 |
-
for name in url_names:
|
178 |
-
associated_emoji = "π" # Default emoji
|
179 |
-
for keyword, emoji in emoji_mapping.items():
|
180 |
-
if keyword in name:
|
181 |
-
associated_emoji = emoji
|
182 |
-
break
|
183 |
-
url_emojis.append(associated_emoji)
|
184 |
-
|
185 |
-
url_emojis[:5], url_names[:5] # Display the first 5 URL names with their associated emojis
|
186 |
-
|
187 |
import streamlit as st
|
188 |
import json
|
189 |
import webbrowser
|
|
|
90 |
|
91 |
#url_emojis[:5], url_names[:5] # Display the first 5 URL names with their associated emojis
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
import streamlit as st
|
94 |
import json
|
95 |
import webbrowser
|