Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
from crew import run_crew
|
4 |
from utils import get_questions
|
5 |
|
6 |
-
def
|
7 |
"""
|
8 |
Run General AI Assistant to answer a question.
|
9 |
|
@@ -114,7 +114,7 @@ with gr.Blocks() as grady:
|
|
114 |
)
|
115 |
|
116 |
submit_btn.click(
|
117 |
-
fn=
|
118 |
inputs=[question, openai_api_key, gemini_api_key, anthropic_api_key, file_name],
|
119 |
outputs=answer
|
120 |
)
|
|
|
3 |
from crew import run_crew
|
4 |
from utils import get_questions
|
5 |
|
6 |
+
def ask(question, openai_api_key, gemini_api_key, anthropic_api_key, file_name = ""):
|
7 |
"""
|
8 |
Run General AI Assistant to answer a question.
|
9 |
|
|
|
114 |
)
|
115 |
|
116 |
submit_btn.click(
|
117 |
+
fn=ask,
|
118 |
inputs=[question, openai_api_key, gemini_api_key, anthropic_api_key, file_name],
|
119 |
outputs=answer
|
120 |
)
|