scott12355 commited on
Commit
886367a
·
1 Parent(s): 07d17d6

return type

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ def generate(text: str):
41
  # print(output)
42
 
43
  print(output)
44
- return {"output": output[0]["generated_text"][-1]['content']}
45
 
46
  @app.post("/chat")
47
  def chat(request: ChatRequest):
@@ -50,4 +50,4 @@ def chat(request: ChatRequest):
50
  """
51
 
52
  output = pipe(request.conversationHistory, num_return_sequences=1, max_new_tokens=250)
53
- return output
 
41
  # print(output)
42
 
43
  print(output)
44
+
45
 
46
  @app.post("/chat")
47
  def chat(request: ChatRequest):
 
50
  """
51
 
52
  output = pipe(request.conversationHistory, num_return_sequences=1, max_new_tokens=250)
53
+ return {"output": output[0]["generated_text"][-1]['content']}