Spaces:
Paused
Paused
Make the models work in parallel 2
Browse files- __pycache__/crew.cpython-310.pyc +0 -0
- app.py +2 -2
__pycache__/crew.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/crew.cpython-310.pyc and b/__pycache__/crew.cpython-310.pyc differ
|
|
|
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import os, threading
|
| 2 |
import gradio as gr
|
| 3 |
-
from crew import
|
| 4 |
from utils import get_questions
|
| 5 |
|
| 6 |
|
|
@@ -43,7 +43,7 @@ def ask(question, openai_api_key, gemini_api_key, anthropic_api_key, file_name =
|
|
| 43 |
os.environ["GEMINI_API_KEY"] = gemini_api_key
|
| 44 |
os.environ["MODEL_API_KEY"] = anthropic_api_key
|
| 45 |
|
| 46 |
-
answer =
|
| 47 |
except Exception as e:
|
| 48 |
raise gr.Error(e)
|
| 49 |
finally:
|
|
|
|
| 1 |
import os, threading
|
| 2 |
import gradio as gr
|
| 3 |
+
from crew import run_parallel_crew
|
| 4 |
from utils import get_questions
|
| 5 |
|
| 6 |
|
|
|
|
| 43 |
os.environ["GEMINI_API_KEY"] = gemini_api_key
|
| 44 |
os.environ["MODEL_API_KEY"] = anthropic_api_key
|
| 45 |
|
| 46 |
+
answer = run_parallel_crew(question, file_name)
|
| 47 |
except Exception as e:
|
| 48 |
raise gr.Error(e)
|
| 49 |
finally:
|