Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"
|
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.
|