Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,12 +2,16 @@ import gradio as gr
|
|
2 |
from datetime import datetime
|
3 |
from typing import List, Optional, Any, Mapping, TypeVar
|
4 |
import pydantic
|
5 |
-
from pydantic import BaseModel
|
6 |
import semantic_kernel
|
7 |
from plugins.sk_bing_plugin import BingPlugin
|
8 |
from plugins.sk_web_pages_plugin import WebPagesPlugin
|
9 |
from planning.autogen_planner import AutoGenPlanner
|
10 |
from typing_extensions import Protocol, runtime_checkable
|
|
|
|
|
|
|
|
|
11 |
# Configure your credentials here
|
12 |
bing_api_key = "..." # Replace with your Bing API key
|
13 |
|
|
|
2 |
from datetime import datetime
|
3 |
from typing import List, Optional, Any, Mapping, TypeVar
|
4 |
import pydantic
|
5 |
+
from pydantic.main import ModelMetaclass, BaseModel # Modify this import
|
6 |
import semantic_kernel
|
7 |
from plugins.sk_bing_plugin import BingPlugin
|
8 |
from plugins.sk_web_pages_plugin import WebPagesPlugin
|
9 |
from planning.autogen_planner import AutoGenPlanner
|
10 |
from typing_extensions import Protocol, runtime_checkable
|
11 |
+
import os
|
12 |
+
from web_search_client import WebSearchClient
|
13 |
+
from web_search_client.models import SafeSearch
|
14 |
+
from azure.core.credentials import AzureKeyCredential
|
15 |
# Configure your credentials here
|
16 |
bing_api_key = "..." # Replace with your Bing API key
|
17 |
|