Olivier-Truong commited on
Commit
e8acca3
·
1 Parent(s): ff69227

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -35,6 +35,12 @@ def generate(
35
 
36
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
37
  output = ""
 
 
 
 
 
 
38
 
39
  for response in stream:
40
  output += response.token.text
 
35
 
36
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
37
  output = ""
38
+
39
+ print(stream, stream.__dir__())
40
+ try:
41
+ print(stream.__dict__)
42
+ except:
43
+ print("erreur sur le dict")
44
 
45
  for response in stream:
46
  output += response.token.text