Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,9 @@ youtube = build('youtube', 'v3', developerKey=API_KEY_YOUTUBE)
|
|
23 |
HF_API_KEY = os.getenv("HF_API")
|
24 |
HF_MISTRAL_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.3"
|
25 |
|
26 |
-
AI_IMAGE_API_KEY = os.getenv("IMG_API")
|
|
|
|
|
27 |
|
28 |
def chat_with_mistral_hf(prompt):
|
29 |
if not HF_API_KEY:
|
@@ -214,7 +216,7 @@ def main():
|
|
214 |
|
215 |
# Sidebar options
|
216 |
st.sidebar.title("Options")
|
217 |
-
search_type = st.sidebar.radio("Select Search Type", ("Wikipedia", "Google", "YouTube", "News", "Chat","Image Generation"))
|
218 |
|
219 |
# **Add this block after st.sidebar.title("Options")**
|
220 |
st.sidebar.header("Only Add Best Web Links")
|
|
|
23 |
HF_API_KEY = os.getenv("HF_API")
|
24 |
HF_MISTRAL_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.3"
|
25 |
|
26 |
+
AI_IMAGE_API_KEY = os.getenv("IMG_API")# Hugging Face or RapidAPI key
|
27 |
+
LOGO_API_KEY = os.getenv("LOGO_API") # API key for logo generation
|
28 |
+
|
29 |
|
30 |
def chat_with_mistral_hf(prompt):
|
31 |
if not HF_API_KEY:
|
|
|
216 |
|
217 |
# Sidebar options
|
218 |
st.sidebar.title("Options")
|
219 |
+
search_type = st.sidebar.radio("Select Search Type", ("Wikipedia", "Google", "YouTube", "News", "Chat","Image Generation", "Logo Generation"))
|
220 |
|
221 |
# **Add this block after st.sidebar.title("Options")**
|
222 |
st.sidebar.header("Only Add Best Web Links")
|