Spaces:
Build error
Build error
3 parameter given fix
Browse files
app.py
CHANGED
@@ -47,7 +47,9 @@ llama = Llama.from_pretrained(
|
|
47 |
)
|
48 |
|
49 |
def respond(
|
50 |
-
message
|
|
|
|
|
51 |
):
|
52 |
# Construct the prompt
|
53 |
prompt = f"{inference_params['pre_prompt_prefix']}{inference_params['pre_prompt']}\n\n{inference_params['input_prefix']}{message}{inference_params['input_suffix']}"
|
@@ -62,7 +64,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
62 |
demo = gr.ChatInterface(
|
63 |
respond,
|
64 |
additional_inputs=[
|
65 |
-
gr.Textbox(value="You are a friendly Chatbot.", label="System message")
|
66 |
#gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
67 |
#gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
68 |
#gr.Slider(
|
|
|
47 |
)
|
48 |
|
49 |
def respond(
|
50 |
+
message,
|
51 |
+
_,
|
52 |
+
_
|
53 |
):
|
54 |
# Construct the prompt
|
55 |
prompt = f"{inference_params['pre_prompt_prefix']}{inference_params['pre_prompt']}\n\n{inference_params['input_prefix']}{message}{inference_params['input_suffix']}"
|
|
|
64 |
demo = gr.ChatInterface(
|
65 |
respond,
|
66 |
additional_inputs=[
|
67 |
+
gr.Textbox(value="You are a friendly Chatbot.", label="System message")#,
|
68 |
#gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
69 |
#gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
70 |
#gr.Slider(
|