Skip to content

Commit

Permalink
Fixed bug with edge handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jrichardson97 committed Jan 25, 2024
1 parent 80d4194 commit 67fab06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions kg_summarizer/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class LLMParameters(BaseModel):
gpt_model: str
gpt_model: str = "gpt-3.5-turbo"
temperature: Optional[float] = 0.0
system_prompt: Optional[str] = ""

Expand Down Expand Up @@ -38,7 +38,7 @@ class EdgeItem(BaseModel):
parameters: Parameters


KG_SUM_VERSION = "0.0.4"
KG_SUM_VERSION = "0.0.5"

# declare the application and populate some details
app = FastAPI(
Expand All @@ -64,7 +64,7 @@ async def summarize_abstract_handler(item: AbstractItem):

@app.post("/summarize/edge")
async def summarize_edge_handler(item: EdgeItem):
edge = EdgeContainer(item)
edge = EdgeContainer(item.edge)

spo_sentence = edge.format_spo_sentence()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="kg-summarizer",
version="0.0.4",
version="0.0.5",
author="Joey Richardson",
author_email="[email protected]",
url="https://github.com/jrichardson97/kg-summarizer",
Expand Down

0 comments on commit 67fab06

Please sign in to comment.