omkar56 commited on
Commit
29f19ba
1 Parent(s): 4f617b6

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -4
main.py CHANGED
@@ -34,8 +34,6 @@ def generate_text(
34
  api_key: str = Depends(get_api_key)
35
  ):
36
  try:
37
- print("[request]",request)
38
- print("[body]",body)
39
  prompt = body.get("prompt", "")
40
  system_prompt = body.get("sysPrompt", "")
41
  temperature = body.get("temperature", 0.5)
@@ -61,7 +59,5 @@ def generate_text(
61
 
62
  return {"generated_text": stream}
63
  except HTTPException as e:
64
- print(f"[Request headers:] {headers}")
65
- print(f"[Request body:] {body}")
66
  raise e
67
 
 
34
  api_key: str = Depends(get_api_key)
35
  ):
36
  try:
 
 
37
  prompt = body.get("prompt", "")
38
  system_prompt = body.get("sysPrompt", "")
39
  temperature = body.get("temperature", 0.5)
 
59
 
60
  return {"generated_text": stream}
61
  except HTTPException as e:
 
 
62
  raise e
63