Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
Β·
8084e89
1
Parent(s):
1a257da
Update os.getenv("MODEL_ID", "gpt-4o-mini") api_base=os.getenv("OPENAI_API_BASE")
Browse files
app.py
CHANGED
@@ -111,9 +111,11 @@ BROWSER_CONFIG = {
|
|
111 |
os.makedirs(f"./{BROWSER_CONFIG['downloads_folder']}", exist_ok=True)
|
112 |
|
113 |
model = LiteLLMModel(
|
114 |
-
"gpt-4o",
|
|
|
115 |
custom_role_conversions=custom_role_conversions,
|
116 |
-
|
|
|
117 |
)
|
118 |
|
119 |
text_limit = 20000
|
@@ -274,7 +276,7 @@ class GradioUI:
|
|
274 |
def launch(self, **kwargs):
|
275 |
with gr.Blocks(theme="ocean", fill_height=True) as demo:
|
276 |
gr.Markdown("""# open Deep Research - free the AI agents!
|
277 |
-
|
278 |
OpenAI just published [Deep Research](https://openai.com/index/introducing-deep-research/), a very nice assistant that can perform deep searches on the web to answer user questions.
|
279 |
|
280 |
However, their agent has a huge downside: it's not open. So we've started a 24-hour rush to replicate and open-source it. Our resulting [open-Deep-Research agent](https://github.com/huggingface/smolagents/tree/main/examples/open_deep_research) took the #1 rank of any open submission on the GAIA leaderboard! β¨
|
|
|
111 |
os.makedirs(f"./{BROWSER_CONFIG['downloads_folder']}", exist_ok=True)
|
112 |
|
113 |
model = LiteLLMModel(
|
114 |
+
# "gpt-4o",
|
115 |
+
api_base=os.getenv("MODEL_ID", "gpt-4o-mini"),
|
116 |
custom_role_conversions=custom_role_conversions,
|
117 |
+
api_base=os.getenv("OPENAI_API_BASE"),
|
118 |
+
api_key=os.getenv("OPENAI_API_KEY"),
|
119 |
)
|
120 |
|
121 |
text_limit = 20000
|
|
|
276 |
def launch(self, **kwargs):
|
277 |
with gr.Blocks(theme="ocean", fill_height=True) as demo:
|
278 |
gr.Markdown("""# open Deep Research - free the AI agents!
|
279 |
+
|
280 |
OpenAI just published [Deep Research](https://openai.com/index/introducing-deep-research/), a very nice assistant that can perform deep searches on the web to answer user questions.
|
281 |
|
282 |
However, their agent has a huge downside: it's not open. So we've started a 24-hour rush to replicate and open-source it. Our resulting [open-Deep-Research agent](https://github.com/huggingface/smolagents/tree/main/examples/open_deep_research) took the #1 rank of any open submission on the GAIA leaderboard! β¨
|