Spaces:
Running
Running
File size: 391 Bytes
91990f9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | from pydantic import BaseModel
from typing import Optional, List
class RunRequest(BaseModel):
language: str
version: str = ""
code: str
class AnalyzeRequest(BaseModel):
language: str
code: str
class AnalysisResult(BaseModel):
time_complexity: str
space_complexity: str
issues: List[str]
suggestions: List[str]
optimized_code: str
|