kshitiz14 commited on
Commit
d21bfd9
·
1 Parent(s): 9907941
breedclassification-frontend/breedclassification/app/page.tsx CHANGED
@@ -2,7 +2,7 @@
2
 
3
  import { useState, useRef, useCallback } from "react";
4
 
5
- const API_URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:7860";
6
 
7
  const BREED_INFO: Record<string, { type: string; origin: string; note: string }> = {
8
  Gir_cow: { type: "Cow", origin: "Gujarat", note: "High milk yield, heat tolerant" },
 
2
 
3
  import { useState, useRef, useCallback } from "react";
4
 
5
+ const API_URL = process.env.NEXT_PUBLIC_API_URL ;
6
 
7
  const BREED_INFO: Record<string, { type: string; origin: string; note: string }> = {
8
  Gir_cow: { type: "Cow", origin: "Gujarat", note: "High milk yield, heat tolerant" },
package-lock.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "SIH",
3
+ "lockfileVersion": 3,
4
+ "requires": true,
5
+ "packages": {}
6
+ }
result.py CHANGED
@@ -12,7 +12,8 @@ app = FastAPI()
12
  # Read allowed origins from env var (comma-separated), fallback to localhost
13
  ALLOWED_ORIGINS = os.getenv(
14
  "ALLOWED_ORIGINS",
15
- "http://localhost:3000"
 
16
  ).split(",")
17
 
18
  app.add_middleware(
 
12
  # Read allowed origins from env var (comma-separated), fallback to localhost
13
  ALLOWED_ORIGINS = os.getenv(
14
  "ALLOWED_ORIGINS",
15
+ "http://localhost:3000",
16
+ "https://huggingface.co/spaces/kshitiz14/breedclassification"
17
  ).split(",")
18
 
19
  app.add_middleware(