sharjeel1477 commited on
Commit
af80b79
·
1 Parent(s): 956825f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- from ask import askQuestion, getBrains
3
 
4
  # abd="#f9fafe"
5
  # abd="6469ff"
@@ -52,8 +52,6 @@ def handleSubmit(brain_name, question, temperature, maxTokens):
52
  return "Please select Brain Name"
53
  if (question == ""):
54
  return "Please Enter Question"
55
- if getBrains(brain_name) == False:
56
- return "Please Enter Correct Brain Name"
57
  return askQuestion(brain_name, question, temperature, maxTokens)
58
 
59
 
 
1
  import gradio as gr
2
+ from ask import askQuestion
3
 
4
  # abd="#f9fafe"
5
  # abd="6469ff"
 
52
  return "Please select Brain Name"
53
  if (question == ""):
54
  return "Please Enter Question"
 
 
55
  return askQuestion(brain_name, question, temperature, maxTokens)
56
 
57