imbajin commented on code in PR #73:
URL: 
https://github.com/apache/incubator-hugegraph-ai/pull/73#discussion_r1729984758


##########
hugegraph-llm/src/hugegraph_llm/demo/rag_web_demo.py:
##########
@@ -289,48 +354,76 @@ def init_rag_ui() -> gr.Interface:
             ]
         graph_config_button = gr.Button("apply configuration")
 
-        graph_config_button.click(apply_graph_config, 
inputs=graph_config_input)  # pylint: disable=no-member
+        graph_config_button.click(
+            apply_graph_config, inputs=graph_config_input
+        )  # pylint: disable=no-member
 
         gr.Markdown("2. Set up the LLM.")
-        llm_dropdown = gr.Dropdown(choices=["openai", "qianfan_wenxin", 
"ollama"], value=settings.llm_type, label="LLM")
+        llm_dropdown = gr.Dropdown(
+            choices=["openai", "qianfan_wenxin", "ollama"],
+            value=settings.llm_type,
+            label="LLM",
+        )
 
         @gr.render(inputs=[llm_dropdown])
         def llm_settings(llm_type):
             settings.llm_type = llm_type
             if llm_type == "openai":
                 with gr.Row():
                     llm_config_input = [
-                        gr.Textbox(value=settings.openai_api_key, 
label="api_key", type="password"),
+                        gr.Textbox(
+                            value=settings.openai_api_key,
+                            label="api_key",
+                            type="password",
+                        ),
                         gr.Textbox(value=settings.openai_api_base, 
label="api_base"),
-                        gr.Textbox(value=settings.openai_language_model, 
label="model_name"),
+                        gr.Textbox(
+                            value=settings.openai_language_model, 
label="model_name"
+                        ),

Review Comment:
   Do we need expand **each function** param to multi lines?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to