Spaces:
Sleeping
Sleeping
Change the API base
Browse files- app.py +2 -2
- explorepage.html +1 -1
- search.html +1 -1
app.py
CHANGED
|
@@ -621,7 +621,7 @@ if __name__ == "__main__":
|
|
| 621 |
print(f"Definitions DB: {DATABASE_CONFIG['definitions_db']}")
|
| 622 |
|
| 623 |
import uvicorn
|
| 624 |
-
port = int(os.environ.get("PORT",
|
| 625 |
-
uvicorn.run(app, host="
|
| 626 |
|
| 627 |
|
|
|
|
| 621 |
print(f"Definitions DB: {DATABASE_CONFIG['definitions_db']}")
|
| 622 |
|
| 623 |
import uvicorn
|
| 624 |
+
port = int(os.environ.get("PORT", 7860))
|
| 625 |
+
uvicorn.run(app, host="0.0.0.0", port=port)
|
| 626 |
|
| 627 |
|
explorepage.html
CHANGED
|
@@ -426,7 +426,7 @@
|
|
| 426 |
|
| 427 |
<script>
|
| 428 |
// Configuration
|
| 429 |
-
const API_BASE = 'http://
|
| 430 |
|
| 431 |
// Global variables
|
| 432 |
let graphData = { nodes: [], edges: [] };
|
|
|
|
| 426 |
|
| 427 |
<script>
|
| 428 |
// Configuration
|
| 429 |
+
const API_BASE = 'http://0.0.0.0:7860/api';
|
| 430 |
|
| 431 |
// Global variables
|
| 432 |
let graphData = { nodes: [], edges: [] };
|
search.html
CHANGED
|
@@ -484,7 +484,7 @@
|
|
| 484 |
|
| 485 |
<script>
|
| 486 |
// Configuration
|
| 487 |
-
const API_BASE = 'http://
|
| 488 |
|
| 489 |
// Global variables
|
| 490 |
let currentQuery = '';
|
|
|
|
| 484 |
|
| 485 |
<script>
|
| 486 |
// Configuration
|
| 487 |
+
const API_BASE = 'http://0.0.0.0:7860/api';
|
| 488 |
|
| 489 |
// Global variables
|
| 490 |
let currentQuery = '';
|