John6666 commited on
Commit
ee82c09
·
verified ·
1 Parent(s): 65832a2

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +1 -0
  2. app.py +2 -0
README.md CHANGED
@@ -8,6 +8,7 @@ sdk_version: 4.43.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
11
  ---
12
 
13
  An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
 
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
+ hf_oauth: true
12
  ---
13
 
14
  An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
app.py CHANGED
@@ -35,6 +35,8 @@ with gr.Blocks() as demo:
35
  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
 
39
  jc_run_button.click(fn=stream_chat_mod, inputs=[jc_input_image, jc_tokens, jc_topk, jc_temperature], outputs=[jc_output_caption])
40
  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)
 
35
  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)