Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -500,14 +500,6 @@ def send_to_model_impl(prompt, model_selection, hf_model_choice, hf_custom_model
|
|
500 |
"""Implementation of model sending with all providers."""
|
501 |
logging.info("send to model impl commencing...")
|
502 |
|
503 |
-
try:
|
504 |
-
def send_to_model_impl(prompt, model_selection, hf_model_choice, hf_custom_model, hf_api_key,
|
505 |
-
groq_model_choice, groq_api_key, openai_api_key, openai_model_choice,
|
506 |
-
cohere_api_key=None, cohere_model=None, glhf_api_key=None, glhf_model=None,
|
507 |
-
glhf_custom_model=None, use_rate_limits=False):
|
508 |
-
"""Implementation of model sending with all providers."""
|
509 |
-
logging.info("send to model impl commencing...")
|
510 |
-
|
511 |
try:
|
512 |
if model_selection == "Clipboard only":
|
513 |
# Escape the prompt for JavaScript
|
|
|
500 |
"""Implementation of model sending with all providers."""
|
501 |
logging.info("send to model impl commencing...")
|
502 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
503 |
try:
|
504 |
if model_selection == "Clipboard only":
|
505 |
# Escape the prompt for JavaScript
|