Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ app = FastAPI(title="Debyez Chatbot API")
|
|
12 |
|
13 |
# Initialize OpenAI client
|
14 |
client = OpenAI(
|
15 |
-
|
16 |
-
|
17 |
)
|
18 |
|
19 |
class Message(BaseModel):
|
|
|
12 |
|
13 |
# Initialize OpenAI client
|
14 |
client = OpenAI(
|
15 |
+
api_key=os.getenv("TOKEN"),
|
16 |
+
base_url="https://api-inference.huggingface.co/v1"
|
17 |
)
|
18 |
|
19 |
class Message(BaseModel):
|