schoolkithub commited on
Commit
1a67485
·
verified ·
1 Parent(s): 7420336

Update blackgat/app/main.py

Browse files
Files changed (1) hide show
  1. blackgat/app/main.py +3 -9
blackgat/app/main.py CHANGED
@@ -1,20 +1,15 @@
1
- # main.py
2
  from fastapi import FastAPI
3
  from pydantic import BaseModel
4
  from typing import Dict
5
- from ai_models import (
6
  scribe_generate, killchain_ai,
7
  heatseeker_score, recon_gpt,
8
  exploit_suggestion
9
  )
10
 
11
- app = FastAPI(
12
- title="BlackGat AI",
13
- description="Cloud-based AI for bug bounty automation",
14
- version="1.0.0"
15
- )
16
 
17
- # Models
18
  class VulnReport(BaseModel):
19
  type: str
20
  url: str
@@ -35,7 +30,6 @@ class HeatInput(BaseModel):
35
  class ReconPrompt(BaseModel):
36
  prompt: str
37
 
38
- # API Routes
39
  @app.post("/scribe")
40
  def scribe(data: VulnReport):
41
  return scribe_generate(data.dict())
 
1
+ # app/main.py
2
  from fastapi import FastAPI
3
  from pydantic import BaseModel
4
  from typing import Dict
5
+ from app.ai_models import (
6
  scribe_generate, killchain_ai,
7
  heatseeker_score, recon_gpt,
8
  exploit_suggestion
9
  )
10
 
11
+ app = FastAPI(title="BlackGat AI", version="1.0", description="Cloud AI for Bug Bounty Hunters")
 
 
 
 
12
 
 
13
  class VulnReport(BaseModel):
14
  type: str
15
  url: str
 
30
  class ReconPrompt(BaseModel):
31
  prompt: str
32
 
 
33
  @app.post("/scribe")
34
  def scribe(data: VulnReport):
35
  return scribe_generate(data.dict())