Spaces:
Runtime error
Runtime error
Commit
·
2277826
1
Parent(s):
0ea76bb
Update app.py
Browse files
app.py
CHANGED
@@ -266,22 +266,11 @@ with gr.Blocks(css="""#chatbot { font-size: 14px; min-height: 600; }""") as demo
|
|
266 |
], label='Select Model', default='gpt-3.5-turbo')
|
267 |
btn = gr.Button(value='Submit')
|
268 |
|
269 |
-
model_cost = gr.Markdown("""
|
270 |
-
**Model Cost**:
|
271 |
-
- gpt-3.5-turbo: Pricing not available
|
272 |
-
- gpt-3.5-turbo-16k: Pricing not available
|
273 |
-
- gpt-3.5-turbo-0613: $0.0015 per 1,000 input tokens + $0.0020 per 1,000 output tokens
|
274 |
-
- gpt-3.5-turbo-16k-0613: Pricing not available
|
275 |
-
- text-davinci-003: $0.02 per 1,000 tokens
|
276 |
-
- gpt-4: $0.03 per 1,000 input tokens + $0.06 per 1,000 output tokens
|
277 |
-
- gpt-4-32k: $0.06 per 1,000 input tokens + $0.12 per 1,000 output tokens
|
278 |
-
""")
|
279 |
-
|
280 |
btn.style(full_width=True)
|
281 |
|
282 |
with gr.Group():
|
283 |
#chatbot = gr.Chatbot(placeholder="Chat History", label="Chat History", lines=20, elem_id="chatbot")
|
284 |
-
chatbot = gr.Chatbot(placeholder="Chat History", label="Chat History", lines=
|
285 |
|
286 |
# Bind the click event of the button to the question_answer function
|
287 |
btn.click(
|
|
|
266 |
], label='Select Model', default='gpt-3.5-turbo')
|
267 |
btn = gr.Button(value='Submit')
|
268 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
btn.style(full_width=True)
|
270 |
|
271 |
with gr.Group():
|
272 |
#chatbot = gr.Chatbot(placeholder="Chat History", label="Chat History", lines=20, elem_id="chatbot")
|
273 |
+
chatbot = gr.Chatbot(placeholder="Chat History", label="Chat History", lines=25, elem_id="chatbot")
|
274 |
|
275 |
# Bind the click event of the button to the question_answer function
|
276 |
btn.click(
|