Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def predict(message, chatbot, system_prompt="", temperature=0.9, max_new_tokens=
|
|
23 |
|
24 |
client = Client("https://sha1779-royalgpt.hf.space/")
|
25 |
return client.predict(
|
26 |
-
message, # str in 'Message' Textbox component
|
27 |
system_prompt, # str in 'Optional system prompt' Textbox component
|
28 |
temperature, # int | float (numeric value between 0.0 and 1.0)
|
29 |
max_new_tokens, # int | float (numeric value between 0 and 4096)
|
|
|
23 |
|
24 |
client = Client("https://sha1779-royalgpt.hf.space/")
|
25 |
return client.predict(
|
26 |
+
{'prompt':message}, # str in 'Message' Textbox component
|
27 |
system_prompt, # str in 'Optional system prompt' Textbox component
|
28 |
temperature, # int | float (numeric value between 0.0 and 1.0)
|
29 |
max_new_tokens, # int | float (numeric value between 0 and 4096)
|