suriya7 commited on
Commit
39caeca
·
verified ·
1 Parent(s): 6070e2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def run_generation(user_text, top_p, temperature, top_k, max_new_tokens):
32
  user_text, # input goes here
33
  "", # output - leave this blank for generation!
34
  )
35
- ], return_tensors = "pt",return_dict=True)
36
 
37
  # Start generation on a separate thread, so that we don't block the UI. The text is pulled from the streamer
38
  # in the main thread. Adds timeout to the streamer to handle exceptions in the generation thread.
 
32
  user_text, # input goes here
33
  "", # output - leave this blank for generation!
34
  )
35
+ ], return_tensors = "pt")
36
 
37
  # Start generation on a separate thread, so that we don't block the UI. The text is pulled from the streamer
38
  # in the main thread. Adds timeout to the streamer to handle exceptions in the generation thread.