app.py
Browse files
app.py
CHANGED
|
@@ -217,13 +217,13 @@ def initialize_session(interactive_mode, request: gr.Request):
|
|
| 217 |
|
| 218 |
def create_agent(data_dir, desktop):
|
| 219 |
model = InferenceClientModel(
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
)
|
| 223 |
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
return E2BVisionAgent(
|
| 228 |
model=model,
|
| 229 |
data_dir=data_dir,
|
|
|
|
| 217 |
|
| 218 |
def create_agent(data_dir, desktop):
|
| 219 |
model = InferenceClientModel(
|
| 220 |
+
# model_id="https://n5wr7lfx6wp94tvl.us-east-1.aws.endpoints.huggingface.cloud",
|
| 221 |
+
# token=hf_token,
|
| 222 |
+
#)
|
| 223 |
|
| 224 |
+
model = OpenAIServerModel(
|
| 225 |
+
"gpt-4o",api_key=os.getenv("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")
|
| 226 |
+
)
|
| 227 |
return E2BVisionAgent(
|
| 228 |
model=model,
|
| 229 |
data_dir=data_dir,
|