Spaces:
Running
Running
eheguy commited on
Commit ·
1a070c8
1
Parent(s): 37c0011
Switch model to openai/gpt-oss-120b on Groq
Browse files- README.md +7 -7
- humanizer.py +1 -1
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
title: Humanizer API
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: purple
|
| 6 |
sdk: docker
|
|
@@ -114,7 +114,7 @@ sequenceDiagram
|
|
| 114 |
DB-->>BE: Return plan & usage count
|
| 115 |
BE->>BE: Verify usage count < plan limit
|
| 116 |
end
|
| 117 |
-
rect rgb(
|
| 118 |
Note over BE,LLM: Input Sanitization & Pipeline
|
| 119 |
BE->>BE: Sanitize text (base64 & regex checks)
|
| 120 |
BE->>LLM: Two-Pass humanization prompt
|
|
@@ -130,11 +130,11 @@ The logical execution flow of a single humanization request inside the FastAPI c
|
|
| 130 |
|
| 131 |
```mermaid
|
| 132 |
graph TD
|
| 133 |
-
classDef client fill:#
|
| 134 |
-
classDef api fill:#
|
| 135 |
-
classDef guard fill:#
|
| 136 |
-
classDef pipeline fill:#
|
| 137 |
-
classDef database fill:#
|
| 138 |
|
| 139 |
subgraph UserAction ["1. Trigger Cycle (Client)"]
|
| 140 |
Click[User Clicks Humanize]:::client
|
|
|
|
| 1 |
---
|
| 2 |
title: Humanizer API
|
| 3 |
+
emoji: "📝"
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: purple
|
| 6 |
sdk: docker
|
|
|
|
| 114 |
DB-->>BE: Return plan & usage count
|
| 115 |
BE->>BE: Verify usage count < plan limit
|
| 116 |
end
|
| 117 |
+
rect rgb(238, 238, 238)
|
| 118 |
Note over BE,LLM: Input Sanitization & Pipeline
|
| 119 |
BE->>BE: Sanitize text (base64 & regex checks)
|
| 120 |
BE->>LLM: Two-Pass humanization prompt
|
|
|
|
| 130 |
|
| 131 |
```mermaid
|
| 132 |
graph TD
|
| 133 |
+
classDef client fill:#ffffff,stroke:#000000,stroke-width:2px;
|
| 134 |
+
classDef api fill:#f5f5f5,stroke:#000000,stroke-width:2px;
|
| 135 |
+
classDef guard fill:#eeeeee,stroke:#000000,stroke-width:2px;
|
| 136 |
+
classDef pipeline fill:#e0e0e0,stroke:#000000,stroke-width:2px;
|
| 137 |
+
classDef database fill:#cccccc,stroke:#000000,stroke-width:2px;
|
| 138 |
|
| 139 |
subgraph UserAction ["1. Trigger Cycle (Client)"]
|
| 140 |
Click[User Clicks Humanize]:::client
|
humanizer.py
CHANGED
|
@@ -206,7 +206,7 @@ Tone guidance: {readability_mod}
|
|
| 206 |
Context: {purpose_mod}"""
|
| 207 |
|
| 208 |
response = client.chat.completions.create(
|
| 209 |
-
model="
|
| 210 |
messages=[
|
| 211 |
{"role": "system", "content": system_prompt},
|
| 212 |
{"role": "user", "content": input_text}
|
|
|
|
| 206 |
Context: {purpose_mod}"""
|
| 207 |
|
| 208 |
response = client.chat.completions.create(
|
| 209 |
+
model="openai/gpt-oss-120b",
|
| 210 |
messages=[
|
| 211 |
{"role": "system", "content": system_prompt},
|
| 212 |
{"role": "user", "content": input_text}
|