Spaces:
Runtime error
Runtime error
Upload PromptForge v1.0 — Structured prompt generator for Google AI Studio
Browse files- backend/instruction_store.py +1 -1
- backend/main.py +5 -5
- backend/prompt_logic.py +1 -1
- backend/store.py +1 -1
backend/instruction_store.py
CHANGED
|
@@ -9,7 +9,7 @@ from datetime import datetime
|
|
| 9 |
from pathlib import Path
|
| 10 |
from typing import Dict, List, Optional
|
| 11 |
|
| 12 |
-
from
|
| 13 |
InstructionSettings, InstructionSettingsCreate, InstructionSettingsUpdate,
|
| 14 |
AIProvider, OutputFormat, PersonaType, StyleType,
|
| 15 |
)
|
|
|
|
| 9 |
from pathlib import Path
|
| 10 |
from typing import Dict, List, Optional
|
| 11 |
|
| 12 |
+
from schemas import (
|
| 13 |
InstructionSettings, InstructionSettingsCreate, InstructionSettingsUpdate,
|
| 14 |
AIProvider, OutputFormat, PersonaType, StyleType,
|
| 15 |
)
|
backend/main.py
CHANGED
|
@@ -13,15 +13,15 @@ from fastapi.responses import HTMLResponse, JSONResponse
|
|
| 13 |
from fastapi.staticfiles import StaticFiles
|
| 14 |
from pydantic import BaseModel
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
from
|
| 19 |
-
from
|
| 20 |
build_manifest, build_manifest_from_settings,
|
| 21 |
apply_edits, refine_with_feedback, generate_explanation,
|
| 22 |
apply_target_formatting,
|
| 23 |
)
|
| 24 |
-
from
|
| 25 |
ApproveRequest, ApproveResponse,
|
| 26 |
ExportRequest, ExportResponse,
|
| 27 |
GenerateRequest, GenerateFromSettingsRequest, GenerateResponse,
|
|
|
|
| 13 |
from fastapi.staticfiles import StaticFiles
|
| 14 |
from pydantic import BaseModel
|
| 15 |
|
| 16 |
+
import store
|
| 17 |
+
import instruction_store
|
| 18 |
+
from ai_client import enhance_prompt, check_hf_key, check_google_key, HF_DEFAULT_MODEL, GOOGLE_DEFAULT_MODEL
|
| 19 |
+
from prompt_logic import (
|
| 20 |
build_manifest, build_manifest_from_settings,
|
| 21 |
apply_edits, refine_with_feedback, generate_explanation,
|
| 22 |
apply_target_formatting,
|
| 23 |
)
|
| 24 |
+
from schemas import (
|
| 25 |
ApproveRequest, ApproveResponse,
|
| 26 |
ExportRequest, ExportResponse,
|
| 27 |
GenerateRequest, GenerateFromSettingsRequest, GenerateResponse,
|
backend/prompt_logic.py
CHANGED
|
@@ -9,7 +9,7 @@ import textwrap
|
|
| 9 |
from datetime import datetime
|
| 10 |
from typing import Any, Dict, List, Optional, Tuple
|
| 11 |
|
| 12 |
-
from
|
| 13 |
PromptManifest,
|
| 14 |
StructuredPrompt,
|
| 15 |
PersonaType,
|
|
|
|
| 9 |
from datetime import datetime
|
| 10 |
from typing import Any, Dict, List, Optional, Tuple
|
| 11 |
|
| 12 |
+
from schemas import (
|
| 13 |
PromptManifest,
|
| 14 |
StructuredPrompt,
|
| 15 |
PersonaType,
|
backend/store.py
CHANGED
|
@@ -10,7 +10,7 @@ from datetime import datetime
|
|
| 10 |
from pathlib import Path
|
| 11 |
from typing import Dict, List, Optional
|
| 12 |
|
| 13 |
-
from
|
| 14 |
|
| 15 |
logger = logging.getLogger("promptforge.store")
|
| 16 |
|
|
|
|
| 10 |
from pathlib import Path
|
| 11 |
from typing import Dict, List, Optional
|
| 12 |
|
| 13 |
+
from schemas import PromptManifest, HistoryEntry, PromptStatus
|
| 14 |
|
| 15 |
logger = logging.getLogger("promptforge.store")
|
| 16 |
|