Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -236,13 +236,10 @@ with gr.Blocks(css=customCSS, theme=beautiful_theme) as demo:
|
|
236 |
with gr.Column(min_width=50, scale=1):
|
237 |
with gr.Tab(label="ChatGPT"):
|
238 |
gr.Markdown(f'<p style="text-align:center">Get your Open AI API key <a '
|
239 |
-
<<<<<<< HEAD
|
240 |
f'href="https://platform.openai.com/account/api-keys">here</a></p>')
|
241 |
openAI_key=gr.Textbox(label='Enter your OpenAI API key here')
|
242 |
-
=======
|
243 |
f'href="https://platform.openai.com/account/api-keys">here</a></p>')
|
244 |
openAI_key=gr.Textbox(label='Enter your OpenAI API key here and press Enter')
|
245 |
-
>>>>>>> 2cb7b56a3054d0b5febf8ed9db8c59395b2d0327
|
246 |
model_select_dropdown = gr.Dropdown(
|
247 |
label="Select model", choices=MODELS, multiselect=False, value=MODELS[0]
|
248 |
)
|
@@ -263,18 +260,11 @@ with gr.Blocks(css=customCSS, theme=beautiful_theme) as demo:
|
|
263 |
interactive=True,
|
264 |
label="Temperature",
|
265 |
)
|
266 |
-
<<<<<<< HEAD
|
267 |
-
user_input.submit(predict, inputs=[openAI_key, history, chatbot, user_input, temperature, model_select_dropdown, index_files],
|
268 |
-
outputs=[chatbot, history])
|
269 |
-
user_input.submit(lambda: "", None, user_input)
|
270 |
-
submitBtn.click(predict, inputs=[openAI_key, history, chatbot, user_input, temperature, model_select_dropdown, index_files],
|
271 |
-
=======
|
272 |
openAI_key.submit(set_openai_api_key, [openAI_key], [input_raws])
|
273 |
user_input.submit(predict, inputs=[history, chatbot, user_input, temperature, language_select_dropdown, model_select_dropdown, index_files],
|
274 |
outputs=[chatbot, history])
|
275 |
user_input.submit(lambda: "", None, user_input)
|
276 |
submitBtn.click(predict, inputs=[history, chatbot, user_input, temperature, language_select_dropdown, model_select_dropdown, index_files],
|
277 |
-
>>>>>>> 2cb7b56a3054d0b5febf8ed9db8c59395b2d0327
|
278 |
outputs=[chatbot, history])
|
279 |
submitBtn.click(lambda: "", None, user_input)
|
280 |
demo.queue(concurrency_count=10).launch(server_name="0.0.0.0", server_port=7862)
|
|
|
236 |
with gr.Column(min_width=50, scale=1):
|
237 |
with gr.Tab(label="ChatGPT"):
|
238 |
gr.Markdown(f'<p style="text-align:center">Get your Open AI API key <a '
|
|
|
239 |
f'href="https://platform.openai.com/account/api-keys">here</a></p>')
|
240 |
openAI_key=gr.Textbox(label='Enter your OpenAI API key here')
|
|
|
241 |
f'href="https://platform.openai.com/account/api-keys">here</a></p>')
|
242 |
openAI_key=gr.Textbox(label='Enter your OpenAI API key here and press Enter')
|
|
|
243 |
model_select_dropdown = gr.Dropdown(
|
244 |
label="Select model", choices=MODELS, multiselect=False, value=MODELS[0]
|
245 |
)
|
|
|
260 |
interactive=True,
|
261 |
label="Temperature",
|
262 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
openAI_key.submit(set_openai_api_key, [openAI_key], [input_raws])
|
264 |
user_input.submit(predict, inputs=[history, chatbot, user_input, temperature, language_select_dropdown, model_select_dropdown, index_files],
|
265 |
outputs=[chatbot, history])
|
266 |
user_input.submit(lambda: "", None, user_input)
|
267 |
submitBtn.click(predict, inputs=[history, chatbot, user_input, temperature, language_select_dropdown, model_select_dropdown, index_files],
|
|
|
268 |
outputs=[chatbot, history])
|
269 |
submitBtn.click(lambda: "", None, user_input)
|
270 |
demo.queue(concurrency_count=10).launch(server_name="0.0.0.0", server_port=7862)
|