nice-bill commited on
Commit
8295114
·
1 Parent(s): 665f67c

dockerfile updated

Browse files
.gitignore CHANGED
@@ -13,4 +13,6 @@ wheels/
13
 
14
  PROJECT_LOG.md
15
  CONTRIBUTION_ROADMAP.md
16
- DRAFT_ISSUE.md
 
 
 
13
 
14
  PROJECT_LOG.md
15
  CONTRIBUTION_ROADMAP.md
16
+ DRAFT_ISSUE.md
17
+
18
+ cache_data/
Dockerfile CHANGED
@@ -31,7 +31,7 @@ COPY wallet_power_transformer.pkl .
31
  # Create cache directory
32
  RUN mkdir -p cache_data
33
 
34
- EXPOSE 8000
35
 
36
  # Use the venv's uvicorn directly (thanks to PATH)
37
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
31
  # Create cache directory
32
  RUN mkdir -p cache_data
33
 
34
+ EXPOSE 7860
35
 
36
  # Use the venv's uvicorn directly (thanks to PATH)
37
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
app.py CHANGED
@@ -19,6 +19,8 @@ app = FastAPI(title="Crypto Wallet Persona API", description="Async API with AI-
19
  origins = [
20
  "http://localhost",
21
  "http://localhost:5173", # Default Vite port
 
 
22
  ]
23
 
24
  app.add_middleware(
 
19
  origins = [
20
  "http://localhost",
21
  "http://localhost:5173", # Default Vite port
22
+ "http://localhost:5173", # Vite port when accessed via IP
23
+ "YOUR_VERCEL_FRONTEND_URL" # Placeholder for your Vercel frontend URL
24
  ]
25
 
26
  app.add_middleware(
frontend/index.html CHANGED
@@ -2,7 +2,7 @@
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <link rel="preconnect" href="https://fonts.googleapis.com">
8
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/logo.svg" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <link rel="preconnect" href="https://fonts.googleapis.com">
8
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
frontend/public/logo.svg ADDED
frontend/src/assets/logo.svg CHANGED