ka1kuk commited on
Commit
64ecb03
1 Parent(s): 0c7bb8f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -7
main.py CHANGED
@@ -152,11 +152,11 @@ class Test(BaseModel):
152
 
153
  @app.post("/test")
154
  def test(request: Test):
155
- if neg == True:
156
- chat = "hello world"
157
- elif neg == "True":
158
- chat = "Hi there"
159
- else:
160
- chat = "Hi world"
161
- return {'data': f'Prompt is {request.prompt} Model is {request.model} Neg is {request.neg} Chat is {chat}'}
162
 
 
152
 
153
  @app.post("/test")
154
  def test(request: Test):
155
+ if neg == True:
156
+ chat = "hello world"
157
+ elif neg == "True":
158
+ chat = "Hi there"
159
+ else:
160
+ chat = "Hi world"
161
+ return chat
162