bstraehle commited on
Commit
12e39ca
·
verified ·
1 Parent(s): a80e28b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -69,10 +69,10 @@ def ask(question, openai_api_key, gemini_api_key, anthropic_api_key, file_name =
69
  gr.Warning(msg)
70
  return None, msg
71
 
72
- is_valid, err_msg = validate_input(question, openai_api_key, gemini_api_key, anthropic_api_key)
73
 
74
  if not is_valid:
75
- msg = f"Invalid input: {err_msg}"
76
  gr.Warning(msg)
77
  return None, msg
78
 
 
69
  gr.Warning(msg)
70
  return None, msg
71
 
72
+ is_valid = validate_input(question, openai_api_key, gemini_api_key, anthropic_api_key)
73
 
74
  if not is_valid:
75
+ msg = "Invalid input"
76
  gr.Warning(msg)
77
  return None, msg
78