Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
•
924e140
1
Parent(s):
0e3a232
Update
Browse files
app.py
CHANGED
@@ -347,16 +347,18 @@ with gr.Blocks(title="ChatGLM2-6B-int4", theme=gr.themes.Soft(text_size="sm")) a
|
|
347 |
trans_api,
|
348 |
[input_text, max_length, top_p, temperature],
|
349 |
out_text,
|
350 |
-
show_progress="full",
|
351 |
api_name="tr",
|
352 |
)
|
|
|
353 |
input_text.submit(
|
354 |
trans_api,
|
355 |
[input_text, max_length, top_p, temperature],
|
356 |
out_text,
|
357 |
show_progress="full",
|
358 |
-
api_name="
|
359 |
)
|
|
|
360 |
|
361 |
# demo.queue().launch(share=False, inbrowser=True)
|
362 |
# demo.queue().launch(share=True, inbrowser=True, debug=True)
|
|
|
347 |
trans_api,
|
348 |
[input_text, max_length, top_p, temperature],
|
349 |
out_text,
|
350 |
+
# show_progress="full",
|
351 |
api_name="tr",
|
352 |
)
|
353 |
+
_ = """
|
354 |
input_text.submit(
|
355 |
trans_api,
|
356 |
[input_text, max_length, top_p, temperature],
|
357 |
out_text,
|
358 |
show_progress="full",
|
359 |
+
api_name="tr1",
|
360 |
)
|
361 |
+
# """
|
362 |
|
363 |
# demo.queue().launch(share=False, inbrowser=True)
|
364 |
# demo.queue().launch(share=True, inbrowser=True, debug=True)
|