Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -175,8 +175,8 @@ def retry_last_answer(
|
|
175 |
past_key_values
|
176 |
)
|
177 |
|
178 |
-
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
179 |
-
gr.HTML("""<h1 align="center">ChatGLM2-6B-int4</h1>""")
|
180 |
gr.HTML("""<center><a href="https://huggingface.co/spaces/mikeee/chatglm2-6b-4bit?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>To avoid the queue and for faster inference Duplicate this Space and upgrade to GPU</center>""")
|
181 |
|
182 |
with gr.Accordion("Info", open=False):
|
@@ -266,7 +266,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
266 |
inputs = [user_input],
|
267 |
)
|
268 |
|
269 |
-
with gr.Accordion("For Translation API", open=False):
|
270 |
input_text = gr.Text()
|
271 |
tr_btn = gr.Button("Go", variant="primary")
|
272 |
out_text = gr.Text()
|
|
|
175 |
past_key_values
|
176 |
)
|
177 |
|
178 |
+
with gr.Blocks(title="ChatGLM2-6B-int4", theme=gr.themes.Soft(text_size="sm")) as demo:
|
179 |
+
# gr.HTML("""<h1 align="center">ChatGLM2-6B-int4</h1>""")
|
180 |
gr.HTML("""<center><a href="https://huggingface.co/spaces/mikeee/chatglm2-6b-4bit?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>To avoid the queue and for faster inference Duplicate this Space and upgrade to GPU</center>""")
|
181 |
|
182 |
with gr.Accordion("Info", open=False):
|
|
|
266 |
inputs = [user_input],
|
267 |
)
|
268 |
|
269 |
+
with gr.Accordion("For Chat/Translation API", open=False, visible=False):
|
270 |
input_text = gr.Text()
|
271 |
tr_btn = gr.Button("Go", variant="primary")
|
272 |
out_text = gr.Text()
|