Upload app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ css = """
|
|
| 10 |
.info {text-align:center; display:inline-flex; align-items:center !important}
|
| 11 |
"""
|
| 12 |
|
| 13 |
-
with gr.Blocks() as demo:
|
| 14 |
gr.HTML(JC_TITLE_MD)
|
| 15 |
with gr.Row():
|
| 16 |
with gr.Column():
|
|
@@ -36,7 +36,7 @@ with gr.Blocks() as demo:
|
|
| 36 |
jc_output_caption = gr.Textbox(label="Caption", show_copy_button=True)
|
| 37 |
gr.Markdown(JC_DESC_MD, elem_classes="info")
|
| 38 |
gr.LoginButton()
|
| 39 |
-
gr.DuplicateButton(value="Duplicate Space for private use
|
| 40 |
|
| 41 |
jc_run_button.click(fn=stream_chat_mod, inputs=[jc_input_image, jc_tokens, jc_topk, jc_temperature], outputs=[jc_output_caption])
|
| 42 |
jc_text_model_button.click(change_text_model, [jc_text_model, jc_use_inference_client, jc_gguf, jc_nf4], [jc_text_model], show_api=False)
|
|
|
|
| 10 |
.info {text-align:center; display:inline-flex; align-items:center !important}
|
| 11 |
"""
|
| 12 |
|
| 13 |
+
with gr.Blocks(delete_cache=(60, 3600)) as demo:
|
| 14 |
gr.HTML(JC_TITLE_MD)
|
| 15 |
with gr.Row():
|
| 16 |
with gr.Column():
|
|
|
|
| 36 |
jc_output_caption = gr.Textbox(label="Caption", show_copy_button=True)
|
| 37 |
gr.Markdown(JC_DESC_MD, elem_classes="info")
|
| 38 |
gr.LoginButton()
|
| 39 |
+
gr.DuplicateButton(value="Duplicate Space for private use (This demo does not work on CPU. Requires GPU Space)")
|
| 40 |
|
| 41 |
jc_run_button.click(fn=stream_chat_mod, inputs=[jc_input_image, jc_tokens, jc_topk, jc_temperature], outputs=[jc_output_caption])
|
| 42 |
jc_text_model_button.click(change_text_model, [jc_text_model, jc_use_inference_client, jc_gguf, jc_nf4], [jc_text_model], show_api=False)
|