Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ def inference(message, history, temperature=0.9, maxTokens=512, topP=0.9, repPen
|
|
| 72 |
seed=random.randint(0, 999999999),
|
| 73 |
)
|
| 74 |
# Generating the response by passing the prompt in right format plus the client settings
|
| 75 |
-
stream = client.text_generation(format_prompt(message, history
|
| 76 |
**client_settings)
|
| 77 |
# Reading the stream
|
| 78 |
partial_response = ""
|
|
|
|
| 72 |
seed=random.randint(0, 999999999),
|
| 73 |
)
|
| 74 |
# Generating the response by passing the prompt in right format plus the client settings
|
| 75 |
+
stream = client.text_generation(format_prompt(message, history),
|
| 76 |
**client_settings)
|
| 77 |
# Reading the stream
|
| 78 |
partial_response = ""
|