Spaces:
Sleeping
Sleeping
NEBIUS API π endpoint fix
Browse filesfix:
base_url=https://api.studio.nebius.com
not this:
base_url=https://api.studio.nebius.com/v1/
app.py
CHANGED
|
@@ -231,7 +231,7 @@ def analyze_symptoms_from_text_ai(text_input: str) -> str:
|
|
| 231 |
'headache,nausea'
|
| 232 |
"""
|
| 233 |
client = OpenAI(
|
| 234 |
-
base_url="https://api.studio.nebius.com
|
| 235 |
api_key=GEMMA_TOKEN
|
| 236 |
)
|
| 237 |
|
|
@@ -279,7 +279,7 @@ def full_treatment_answer_ai(user_input: str) -> str:
|
|
| 279 |
"""
|
| 280 |
# Initialize Nebius client
|
| 281 |
client = OpenAI(
|
| 282 |
-
base_url="https://api.studio.nebius.com/
|
| 283 |
api_key=DEEPSEEKv3_TOKEN
|
| 284 |
)
|
| 285 |
|
|
@@ -408,7 +408,7 @@ class BotanistAssistant:
|
|
| 408 |
self.api_endpoint = api_endpoint
|
| 409 |
self.system_message = "You are a botanist assistant that extracts and structures information about medicinal plants."
|
| 410 |
self.client = OpenAI(
|
| 411 |
-
base_url="https://api.studio.nebius.com
|
| 412 |
api_key=DEEPSEEKv3_FAST_TOKEN
|
| 413 |
)
|
| 414 |
|
|
@@ -626,7 +626,7 @@ Also You can consult a Natrual healthcare professional before use.""")
|
|
| 626 |
return demo
|
| 627 |
|
| 628 |
if __name__ == "__main__":
|
| 629 |
-
API_ENDPOINT = "https://api.studio.nebius.com
|
| 630 |
app = create_app(API_ENDPOINT)
|
| 631 |
app.launch(
|
| 632 |
server_name="0.0.0.0",
|
|
|
|
| 231 |
'headache,nausea'
|
| 232 |
"""
|
| 233 |
client = OpenAI(
|
| 234 |
+
base_url="https://api.studio.nebius.com",
|
| 235 |
api_key=GEMMA_TOKEN
|
| 236 |
)
|
| 237 |
|
|
|
|
| 279 |
"""
|
| 280 |
# Initialize Nebius client
|
| 281 |
client = OpenAI(
|
| 282 |
+
base_url="https://api.studio.nebius.com/",
|
| 283 |
api_key=DEEPSEEKv3_TOKEN
|
| 284 |
)
|
| 285 |
|
|
|
|
| 408 |
self.api_endpoint = api_endpoint
|
| 409 |
self.system_message = "You are a botanist assistant that extracts and structures information about medicinal plants."
|
| 410 |
self.client = OpenAI(
|
| 411 |
+
base_url="https://api.studio.nebius.com",
|
| 412 |
api_key=DEEPSEEKv3_FAST_TOKEN
|
| 413 |
)
|
| 414 |
|
|
|
|
| 626 |
return demo
|
| 627 |
|
| 628 |
if __name__ == "__main__":
|
| 629 |
+
API_ENDPOINT = "https://api.studio.nebius.com" # Replace with your actual endpoint
|
| 630 |
app = create_app(API_ENDPOINT)
|
| 631 |
app.launch(
|
| 632 |
server_name="0.0.0.0",
|