Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,8 @@ user_api_key = gr.Textbox(
|
|
57 |
type="password",
|
58 |
)
|
59 |
|
|
|
|
|
60 |
user_temperature = gr.Slider(0, 1, value=0.5, label="Temperature", info="Select model temperature")
|
61 |
|
62 |
user_max_new_tokens = gr.Slider(0, 8192, value=1024, label="Max new tokens", info="Select max output tokens (higher number of tokens will result in a longer latency)")
|
@@ -65,9 +67,8 @@ user_session_id = gr.Textbox(label="System Template",info="Customize your assist
|
|
65 |
|
66 |
additional_accordion = gr.Accordion(label="Parameters to be set before you start chatting", open=True)
|
67 |
|
68 |
-
demo = gr.ChatInterface(fn=reply, additional_inputs=[chat_model, user_api_key, user_temperature, user_max_new_tokens, user_session_id], additional_inputs_accordion=additional_accordion, title="Chat with Anthropic, OpenAI, Groq and Cohere Models🤖")
|
69 |
|
70 |
|
71 |
if __name__=="__main__":
|
72 |
-
demo.launch(server_name="0.0.0.0", share=False)
|
73 |
-
|
|
|
57 |
type="password",
|
58 |
)
|
59 |
|
60 |
+
theme="Nymbo/Nymbo_Theme"
|
61 |
+
|
62 |
user_temperature = gr.Slider(0, 1, value=0.5, label="Temperature", info="Select model temperature")
|
63 |
|
64 |
user_max_new_tokens = gr.Slider(0, 8192, value=1024, label="Max new tokens", info="Select max output tokens (higher number of tokens will result in a longer latency)")
|
|
|
67 |
|
68 |
additional_accordion = gr.Accordion(label="Parameters to be set before you start chatting", open=True)
|
69 |
|
70 |
+
demo = gr.ChatInterface(theme=theme, fn=reply, additional_inputs=[chat_model, user_api_key, user_temperature, user_max_new_tokens, user_session_id], additional_inputs_accordion=additional_accordion, title="Chat with Anthropic, OpenAI, Groq and Cohere Models🤖")
|
71 |
|
72 |
|
73 |
if __name__=="__main__":
|
74 |
+
demo.launch(server_name="0.0.0.0", share=False)
|
|