Spaces:
Sleeping
Sleeping
remove extra argument
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
| 18 |
# pipeline move to func
|
| 19 |
# text_generator = pipeline("text-generation", model="microsoft/Phi-3-mini-4k-instruct", use_auth_token=hf_token, trust_remote_code=True)
|
| 20 |
|
| 21 |
-
def authenticate_and_generate(
|
| 22 |
# Initialize the text-generation pipeline with the provided token
|
| 23 |
text_generator = pipeline("text-generation", model="microsoft/Phi-3-mini-4k-instruct", use_auth_token=hf_token, trust_remote_code=True)
|
| 24 |
|
|
|
|
| 18 |
# pipeline move to func
|
| 19 |
# text_generator = pipeline("text-generation", model="microsoft/Phi-3-mini-4k-instruct", use_auth_token=hf_token, trust_remote_code=True)
|
| 20 |
|
| 21 |
+
def authenticate_and_generate(message, history, system_message, max_tokens, temperature, top_p):
|
| 22 |
# Initialize the text-generation pipeline with the provided token
|
| 23 |
text_generator = pipeline("text-generation", model="microsoft/Phi-3-mini-4k-instruct", use_auth_token=hf_token, trust_remote_code=True)
|
| 24 |
|