Spaces:
Sleeping
Sleeping
Commit Β·
4faba57
1
Parent(s): 7f92890
fix: change API_BASE for hugging face domain and add spacing for tooltips
Browse files
toothmap_frontend/src/App.jsx
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useState, useRef, useEffect } from 'react';
|
|
| 2 |
import axios from 'axios';
|
| 3 |
import { UploadCloud, Activity, Loader2, ScanLine, X } from 'lucide-react';
|
| 4 |
|
| 5 |
-
const API_BASE = "http://127.0.0.1:8000";
|
| 6 |
|
| 7 |
const MODES = [
|
| 8 |
{
|
|
@@ -365,7 +365,7 @@ export default function App() {
|
|
| 365 |
</div>
|
| 366 |
|
| 367 |
{/* ββ Main Content βββββββββββββββββββββββββββββββββββββββββββββββββββββ */}
|
| 368 |
-
<main className="flex-1 flex flex-col items-center px-3 sm:px-6
|
| 369 |
|
| 370 |
{/* Image Upload zone */}
|
| 371 |
<div
|
|
|
|
| 2 |
import axios from 'axios';
|
| 3 |
import { UploadCloud, Activity, Loader2, ScanLine, X } from 'lucide-react';
|
| 4 |
|
| 5 |
+
const API_BASE = window.location.origin.includes('localhost') || window.location.origin.includes('127.0.0.1') ? "http://127.0.0.1:8000" : window.location.origin;
|
| 6 |
|
| 7 |
const MODES = [
|
| 8 |
{
|
|
|
|
| 365 |
</div>
|
| 366 |
|
| 367 |
{/* ββ Main Content βββββββββββββββββββββββββββββββββββββββββββββββββββββ */}
|
| 368 |
+
<main className="flex-1 flex flex-col items-center px-3 sm:px-6 pt-16 pb-6 gap-5 overflow-auto">
|
| 369 |
|
| 370 |
{/* Image Upload zone */}
|
| 371 |
<div
|