Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -107,16 +107,14 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
107 |
gr.HTML("""<h1 align="center">ChatGLM2-6B-int4</h1>""")
|
108 |
with gr.Accordion("Info", open=False):
|
109 |
_ = """
|
110 |
-
|
111 |
the question and answer contain.
|
112 |
|
113 |
-
Low temperature: responses will be more deterministic and focused; High temperature: more creative
|
114 |
-
|
115 |
-
Suggested temperatures -- translation: up to 0.3; chatting: > 0.4
|
116 |
|
117 |
-
Top P controls dynamic vocabulary selection based on context.
|
118 |
|
119 |
-
For a table of of example values for different scenarios, refer to https://community.openai.com/t/cheat-sheet-mastering-temperature-and-top-p-in-chatgpt-api-a-few-tips-and-tricks-on-controlling-the-creativity-deterministic-output-of-prompt-responses/172683
|
120 |
"""
|
121 |
gr.Markdown(dedent(_))
|
122 |
chatbot = gr.Chatbot()
|
|
|
107 |
gr.HTML("""<h1 align="center">ChatGLM2-6B-int4</h1>""")
|
108 |
with gr.Accordion("Info", open=False):
|
109 |
_ = """
|
110 |
+
A query takes from 30 seconds to a few hundred seconds, dependent on the number of words/characters
|
111 |
the question and answer contain.
|
112 |
|
113 |
+
* Low temperature: responses will be more deterministic and focused; High temperature: more creative. Suggested temperatures -- translation: up to 0.3; chatting: > 0.4
|
|
|
|
|
114 |
|
115 |
+
* Top P controls dynamic vocabulary selection based on context.
|
116 |
|
117 |
+
For a table of of example values for different scenarios, refer to [this](https://community.openai.com/t/cheat-sheet-mastering-temperature-and-top-p-in-chatgpt-api-a-few-tips-and-tricks-on-controlling-the-creativity-deterministic-output-of-prompt-responses/172683)
|
118 |
"""
|
119 |
gr.Markdown(dedent(_))
|
120 |
chatbot = gr.Chatbot()
|