Spaces:
Runtime error
Runtime error
Commit
•
fbcfd77
1
Parent(s):
b5897ad
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,9 @@ def chat(top_p, temperature, max_new_tokens, message):
|
|
73 |
#io = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
74 |
|
75 |
iface = gr.Interface(fn=chat,
|
76 |
-
inputs=[Textbox(label="
|
|
|
|
|
77 |
Slider(minimum=0.5, maximum=1, step=0.05, default=0.9, label="top_p"),
|
78 |
Slider(minimum=0.5, maximum=1.5, step=0.1, default=1.1, label="temperature"),
|
79 |
Slider(minimum=20, maximum=250, step=10, default=50, label="max_new_tokens"),
|
|
|
73 |
#io = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
74 |
|
75 |
iface = gr.Interface(fn=chat,
|
76 |
+
inputs=[Textbox(label="message"),
|
77 |
+
Textbox(label="npc_name"),
|
78 |
+
Textbox(label="prompt"),
|
79 |
Slider(minimum=0.5, maximum=1, step=0.05, default=0.9, label="top_p"),
|
80 |
Slider(minimum=0.5, maximum=1.5, step=0.1, default=1.1, label="temperature"),
|
81 |
Slider(minimum=20, maximum=250, step=10, default=50, label="max_new_tokens"),
|