Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ In this app, you can explore the outputs of a gpt-3.5-turbo LLM.
|
|
108 |
css = """
|
109 |
#col_container {max-width: 1300px; margin-left: auto; margin-right: auto;}
|
110 |
#chatbot {height: 520px; overflow: auto;}
|
111 |
-
#input_textbox textarea {height: 100px;
|
112 |
"""
|
113 |
|
114 |
with gr.Blocks(css=css) as demo:
|
@@ -117,10 +117,10 @@ with gr.Blocks(css=css) as demo:
|
|
117 |
with gr.Column(elem_id="col_container"):
|
118 |
openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")
|
119 |
chatbot = gr.Chatbot(elem_id="chatbot")
|
120 |
-
with gr.Column(elem_id="input_textbox"
|
121 |
inputs = gr.Textbox(placeholder="Hi there!", label="Type an input and press Enter")
|
122 |
-
|
123 |
-
|
124 |
|
125 |
#inputs, top_p, temperature, top_k, repetition_penalty
|
126 |
with gr.Accordion("Parameters", open=False):
|
|
|
108 |
css = """
|
109 |
#col_container {max-width: 1300px; margin-left: auto; margin-right: auto;}
|
110 |
#chatbot {height: 520px; overflow: auto;}
|
111 |
+
#input_textbox textarea {height: 100px; margin-left: auto; margin-right: auto;}
|
112 |
"""
|
113 |
|
114 |
with gr.Blocks(css=css) as demo:
|
|
|
117 |
with gr.Column(elem_id="col_container"):
|
118 |
openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")
|
119 |
chatbot = gr.Chatbot(elem_id="chatbot")
|
120 |
+
with gr.Column(elem_id="input_textbox"):
|
121 |
inputs = gr.Textbox(placeholder="Hi there!", label="Type an input and press Enter")
|
122 |
+
state = gr.State([])
|
123 |
+
b1 = gr.Button()
|
124 |
|
125 |
#inputs, top_p, temperature, top_k, repetition_penalty
|
126 |
with gr.Accordion("Parameters", open=False):
|