Spaces:
Runtime error
Runtime error
Commit ·
84e069a
1
Parent(s): 02f17b3
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,15 +46,15 @@ with gr.Blocks() as chatbot_demo:
|
|
| 46 |
fn=generate_response,
|
| 47 |
inputs=[
|
| 48 |
gr.inputs.Textbox(label="Chat Input", placeholder="Start the conversation..."),
|
| 49 |
-
gr.inputs.
|
| 50 |
-
gr.inputs.
|
| 51 |
-
gr.inputs.
|
| 52 |
-
gr.inputs.
|
| 53 |
-
gr.inputs.
|
| 54 |
-
gr.inputs.
|
| 55 |
-
gr.inputs.
|
| 56 |
-
gr.inputs.Textbox(label="Number of Predictions"
|
| 57 |
-
gr.inputs.Checkbox(label="Streaming"
|
| 58 |
],
|
| 59 |
outputs=gr.outputs.Textbox(),
|
| 60 |
title="GPT-4 Chatbot",
|
|
@@ -62,7 +62,6 @@ with gr.Blocks() as chatbot_demo:
|
|
| 62 |
)
|
| 63 |
|
| 64 |
with gr.Tab("Settings"):
|
| 65 |
-
# Settings UI to be defined here
|
| 66 |
gr.Text("Settings tab content")
|
| 67 |
|
| 68 |
# Launch Gradio Interface
|
|
|
|
| 46 |
fn=generate_response,
|
| 47 |
inputs=[
|
| 48 |
gr.inputs.Textbox(label="Chat Input", placeholder="Start the conversation..."),
|
| 49 |
+
gr.inputs.Number(default=200, label="Max Tokens"),
|
| 50 |
+
gr.inputs.Number(default=0.7, label="Temperature"),
|
| 51 |
+
gr.inputs.Number(default=40, label="Top-k"),
|
| 52 |
+
gr.inputs.Number(default=0.4, label="Top-p"),
|
| 53 |
+
gr.inputs.Number(default=1.18, label="Repeat Penalty"),
|
| 54 |
+
gr.inputs.Number(default=64, label="Repeat Last n"),
|
| 55 |
+
gr.inputs.Number(default=8, label="Batch Size"),
|
| 56 |
+
gr.inputs.Textbox(default="Auto", label="Number of Predictions"),
|
| 57 |
+
gr.inputs.Checkbox(default=False, label="Streaming"),
|
| 58 |
],
|
| 59 |
outputs=gr.outputs.Textbox(),
|
| 60 |
title="GPT-4 Chatbot",
|
|
|
|
| 62 |
)
|
| 63 |
|
| 64 |
with gr.Tab("Settings"):
|
|
|
|
| 65 |
gr.Text("Settings tab content")
|
| 66 |
|
| 67 |
# Launch Gradio Interface
|