Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def text_generation(text):
|
|
32 |
"max_new_tokens": 500,
|
33 |
"return_full_text": False,
|
34 |
"temperature": 0.0,
|
35 |
-
"do_sample":
|
36 |
}
|
37 |
|
38 |
text_gen= pipeline("text-generation", model="microsoft/Phi-3-mini-128k-instruct", tokenizer=tokenizer, trust_remote_code = True)
|
|
|
32 |
"max_new_tokens": 500,
|
33 |
"return_full_text": False,
|
34 |
"temperature": 0.0,
|
35 |
+
"do_sample": True,
|
36 |
}
|
37 |
|
38 |
text_gen= pipeline("text-generation", model="microsoft/Phi-3-mini-128k-instruct", tokenizer=tokenizer, trust_remote_code = True)
|