Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ client = InferenceClient(model="https://zgg3nzdpswxy4a-80.proxy.runpod.net")
|
|
5 |
|
6 |
def inference(message, history):
|
7 |
partial_message = ""
|
8 |
-
for token in client.text_generation(message, max_new_tokens=256, stream=True,
|
|
|
9 |
partial_message += token
|
10 |
yield partial_message
|
11 |
|
|
|
5 |
|
6 |
def inference(message, history):
|
7 |
partial_message = ""
|
8 |
+
for token in client.text_generation(message, max_new_tokens=256, stream=True,
|
9 |
+
temperature=0.5, do_sample=True, top_p=0.9):
|
10 |
partial_message += token
|
11 |
yield partial_message
|
12 |
|