ThomasSimonini HF staff commited on
Commit
d9c560c
1 Parent(s): 757c89f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -87,15 +87,15 @@ def chat(message, npc_name, initial_prompt, top_p, temperature, max_new_tokens,
87
  #io = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
88
 
89
  iface = gr.Interface(fn=chat,
90
- inputs=[Textbox(label="message"),
91
- Textbox(label="npc_name"),
92
- Textbox(label="initial_prompt"),
93
  Slider(minimum=0.5, maximum=1, step=0.05, default=0.9, label="top_p"),
94
  Slider(minimum=0.5, maximum=1.5, step=0.1, default=1.1, label="temperature"),
95
  Slider(minimum=20, maximum=250, step=10, default=50, label="max_new_tokens"),
96
  "state"],
97
  outputs=["chatbot","state"],
98
- examples = [["Hello!", "Antoine", "The following is a conversation with Antoine, a guard for Northfall that's drinking in the Tavern.", 0.9, 1.1, 50, iface.state]],
99
  allow_screenshot=True,
100
  allow_flagging=True,
101
  title=title,
 
87
  #io = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
88
 
89
  iface = gr.Interface(fn=chat,
90
+ inputs=[Textbox(label="message", placeholder="Hello!"),
91
+ Textbox(label="npc_name", placeholder="Antoine"),
92
+ Textbox(label="initial_prompt", "The following is a conversation with Antoine, a guard for Northfall that's drinking in the Tavern."),
93
  Slider(minimum=0.5, maximum=1, step=0.05, default=0.9, label="top_p"),
94
  Slider(minimum=0.5, maximum=1.5, step=0.1, default=1.1, label="temperature"),
95
  Slider(minimum=20, maximum=250, step=10, default=50, label="max_new_tokens"),
96
  "state"],
97
  outputs=["chatbot","state"],
98
+ #examples = [["Hello!", "", , 0.9, 1.1, 50, iface.state]],
99
  allow_screenshot=True,
100
  allow_flagging=True,
101
  title=title,