seawolf2357 commited on
Commit
0e1f78e
Β·
verified Β·
1 Parent(s): a98c10e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,11 +31,11 @@ def main_interface():
31
  with gr.Blocks() as demo:
32
  with gr.Row():
33
  prompt = gr.Textbox(label="Prompt", placeholder="Enter your prompt here...")
34
- history = gr.Textbox(label="History", placeholder="Enter history as JSON array...", multiline=True)
35
  system_prompt = gr.Textbox(label="System Prompt", placeholder="λ°˜λ“œμ‹œ ν•œκΈ€λ‘œ λ‹΅λ³€ν•˜λΌ")
36
  temperature = gr.Number(label="Temperature", value=0.3)
37
  max_new_tokens = gr.Number(label="Max New Tokens", value=1048)
38
- top_p = gr.Number(label="Top P", value=0.9)
39
  repetition_penalty = gr.Number(label="Repetition Penalty", value=1.0)
40
  submit_button = gr.Button("Generate")
41
 
 
31
  with gr.Blocks() as demo:
32
  with gr.Row():
33
  prompt = gr.Textbox(label="Prompt", placeholder="Enter your prompt here...")
34
+ history = gr.Textarea(label="History", placeholder="Enter history as JSON array...", rows=3)
35
  system_prompt = gr.Textbox(label="System Prompt", placeholder="λ°˜λ“œμ‹œ ν•œκΈ€λ‘œ λ‹΅λ³€ν•˜λΌ")
36
  temperature = gr.Number(label="Temperature", value=0.3)
37
  max_new_tokens = gr.Number(label="Max New Tokens", value=1048)
38
+ top_p = gr.Number(label="Top P", value=0.95)
39
  repetition_penalty = gr.Number(label="Repetition Penalty", value=1.0)
40
  submit_button = gr.Button("Generate")
41