Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ session = requests.Session()
|
|
9 |
|
10 |
# Function to interact with the AI
|
11 |
def chat_with_ai(message, user_input):
|
12 |
-
api_url = os.getenv("CHAT_API_URL")
|
13 |
payload = {"message": message, "user_input": user_input}
|
14 |
|
15 |
try:
|
@@ -23,7 +23,7 @@ def chat_with_ai(message, user_input):
|
|
23 |
|
24 |
# Function to perform web search
|
25 |
def web_search(query):
|
26 |
-
url = os.getenv("SEARCH_API_URL")
|
27 |
payload = {"query": query}
|
28 |
response = requests.post(url, json=payload)
|
29 |
|
@@ -58,7 +58,7 @@ def main():
|
|
58 |
""")
|
59 |
|
60 |
st.sidebar.markdown("---")
|
61 |
-
st.sidebar.markdown("©
|
62 |
|
63 |
if generate_report:
|
64 |
if query:
|
|
|
9 |
|
10 |
# Function to interact with the AI
|
11 |
def chat_with_ai(message, user_input):
|
12 |
+
api_url = os.getenv("CHAT_API_URL") # Vortex 3b models API
|
13 |
payload = {"message": message, "user_input": user_input}
|
14 |
|
15 |
try:
|
|
|
23 |
|
24 |
# Function to perform web search
|
25 |
def web_search(query):
|
26 |
+
url = os.getenv("SEARCH_API_URL") # Webscout API
|
27 |
payload = {"query": query}
|
28 |
response = requests.post(url, json=payload)
|
29 |
|
|
|
58 |
""")
|
59 |
|
60 |
st.sidebar.markdown("---")
|
61 |
+
st.sidebar.markdown("© 2024 HelpingAI. All rights reserved.")
|
62 |
|
63 |
if generate_report:
|
64 |
if query:
|