summaryrefslogtreecommitdiffstats
path: root/gui/query_methods.py
diff options
context:
space:
mode:
authornoptuno <repollo.marrero@gmail.com>2023-04-28 02:48:00 +0200
committernoptuno <repollo.marrero@gmail.com>2023-04-28 02:48:00 +0200
commit104e58a3421665fc3acfd7fea8e1317fe1181c6d (patch)
tree092030df5d098e91908622dd0d991f591bd555be /gui/query_methods.py
parentResolved merge conflicts and merged pr_218 into STREAMLIT_CHAT_IMPLEMENTATION (diff)
downloadgpt4free-104e58a3421665fc3acfd7fea8e1317fe1181c6d.tar
gpt4free-104e58a3421665fc3acfd7fea8e1317fe1181c6d.tar.gz
gpt4free-104e58a3421665fc3acfd7fea8e1317fe1181c6d.tar.bz2
gpt4free-104e58a3421665fc3acfd7fea8e1317fe1181c6d.tar.lz
gpt4free-104e58a3421665fc3acfd7fea8e1317fe1181c6d.tar.xz
gpt4free-104e58a3421665fc3acfd7fea8e1317fe1181c6d.tar.zst
gpt4free-104e58a3421665fc3acfd7fea8e1317fe1181c6d.zip
Diffstat (limited to 'gui/query_methods.py')
-rw-r--r--gui/query_methods.py24
1 files changed, 11 insertions, 13 deletions
diff --git a/gui/query_methods.py b/gui/query_methods.py
index 08a81b64..49946900 100644
--- a/gui/query_methods.py
+++ b/gui/query_methods.py
@@ -53,19 +53,19 @@ def query_you(question: str) -> str:
# Return error message if an exception occurs
return f'An error occurred: {e}. Please make sure you are using a valid cloudflare clearance token and user agent.'
-# Define a dictionary containing all query methods
-avail_query_methods = {
- "Forefront": query_forefront,
- "Poe": query_quora,
- "Theb": query_theb,
- "You": query_you,
- # "Writesonic": query_writesonic,
- # "T3nsor": query_t3nsor,
- # "Phind": query_phind,
- # "Ora": query_ora,
-}
def query(user_input: str, selected_method: str = "Random") -> str:
+ # Define a dictionary containing all query methods
+ avail_query_methods = {
+ "Forefront": query_forefront,
+ "Poe": query_quora,
+ "Theb": query_theb,
+ "You": query_you,
+ # "Writesonic": query_writesonic,
+ # "T3nsor": query_t3nsor,
+ # "Phind": query_phind,
+ # "Ora": query_ora,
+ }
# If a specific query method is selected (not "Random") and the method is in the dictionary, try to call it
if selected_method != "Random" and selected_method in avail_query_methods:
@@ -98,5 +98,3 @@ def query(user_input: str, selected_method: str = "Random") -> str:
return result
-
-__all__ = ['query', 'avail_query_methods']