MiCkSoftware commited on
Commit
aa87c7c
·
1 Parent(s): 25a0405
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -45,6 +45,7 @@ def generate_stream(request: PredictionRequest):
45
  top_p=request.top_p,
46
  ):
47
  token = message.choices[0].delta.content
 
48
  yield f"{token}\n" # Chaque token avec un saut de ligne
49
  except Exception as e:
50
  yield f"Error: {str(e)}\n"
 
45
  top_p=request.top_p,
46
  ):
47
  token = message.choices[0].delta.content
48
+ print(token)
49
  yield f"{token}\n" # Chaque token avec un saut de ligne
50
  except Exception as e:
51
  yield f"Error: {str(e)}\n"