Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 38 |
hf = HuggingFacePipeline.from_model_id(
|
| 39 |
model_id= "microsoft/Phi-4-mini-instruct",
|
| 40 |
task="text-generation",
|
| 41 |
-
pipeline_kwargs = {"max_new_tokens":
|
| 42 |
|
| 43 |
chat_model = ChatHuggingFace(llm=hf)
|
| 44 |
|
|
|
|
| 38 |
hf = HuggingFacePipeline.from_model_id(
|
| 39 |
model_id= "microsoft/Phi-4-mini-instruct",
|
| 40 |
task="text-generation",
|
| 41 |
+
pipeline_kwargs = {"max_new_tokens": 800, "temperature": 0.4})
|
| 42 |
|
| 43 |
chat_model = ChatHuggingFace(llm=hf)
|
| 44 |
|