Spaces:
Sleeping
Sleeping
Update app.py
Browse filesset torch.manual_seed(42) above generate functiono.
app.py
CHANGED
@@ -123,6 +123,7 @@ def evaluate(
|
|
123 |
return # early return for stream_output
|
124 |
|
125 |
# Without streaming
|
|
|
126 |
with torch.no_grad():
|
127 |
generation_output = model.generate(
|
128 |
input_ids=input_ids,
|
|
|
123 |
return # early return for stream_output
|
124 |
|
125 |
# Without streaming
|
126 |
+
torch.manual_seed(42)
|
127 |
with torch.no_grad():
|
128 |
generation_output = model.generate(
|
129 |
input_ids=input_ids,
|