heymenn commited on
Commit
3d71120
·
1 Parent(s): f89de05

fix backend

Browse files
Files changed (2) hide show
  1. backend/main.py +2 -2
  2. services/backendService.ts +1 -1
backend/main.py CHANGED
@@ -356,8 +356,8 @@ async def process_document(req: ProcessRequest):
356
  logger.error(f"Error processing: {e}")
357
  raise HTTPException(status_code=500, detail=str(e))
358
 
359
- import uvicorn
360
- uvicorn.run(app, host="0.0.0.0", port=8000)
361
 
362
  # Serve Static Files for Deployment (must be after API routes)
363
  static_dir = "static"
 
356
  logger.error(f"Error processing: {e}")
357
  raise HTTPException(status_code=500, detail=str(e))
358
 
359
+ import uvicorn
360
+ uvicorn.run(app, host="0.0.0.0", port=7860)
361
 
362
  # Serve Static Files for Deployment (must be after API routes)
363
  static_dir = "static"
services/backendService.ts CHANGED
@@ -1,6 +1,6 @@
1
  import { DocumentFile, Innovation } from '../types';
2
 
3
- const BACKEND_API_URL = 'http://localhost:8000';
4
 
5
  export interface ProcessResponse {
6
  id: string;
 
1
  import { DocumentFile, Innovation } from '../types';
2
 
3
+ const BACKEND_API_URL = 'http://localhost:7860';
4
 
5
  export interface ProcessResponse {
6
  id: string;