Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def format_prompt(message, history):
|
|
16 |
return prompt
|
17 |
|
18 |
def generate(
|
19 |
-
prompt, history,
|
20 |
):
|
21 |
if agent_name == "WEB_DEV":
|
22 |
agent = prompt.WEB_DEV
|
@@ -52,7 +52,7 @@ agents =[
|
|
52 |
|
53 |
additional_inputs=[
|
54 |
gr.Textbox(
|
55 |
-
label="
|
56 |
max_lines=1,
|
57 |
interactive=True,
|
58 |
),
|
|
|
16 |
return prompt
|
17 |
|
18 |
def generate(
|
19 |
+
prompt, history, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0, agent_name=None,
|
20 |
):
|
21 |
if agent_name == "WEB_DEV":
|
22 |
agent = prompt.WEB_DEV
|
|
|
52 |
|
53 |
additional_inputs=[
|
54 |
gr.Textbox(
|
55 |
+
label="Prompt",
|
56 |
max_lines=1,
|
57 |
interactive=True,
|
58 |
),
|