caveman1 commited on
Commit
39c552c
·
verified ·
1 Parent(s): dd05e73

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -28,14 +28,12 @@ with gr.Blocks() as demo:
28
 
29
  with gr.Row():
30
  image = gr.Image(type="filepath", label="Upload or Paste Image")
31
- prompt_out = gr.Textbox(label="Generated Prompt", lines=2)
32
 
33
  with gr.Row():
34
  btn = gr.Button("Get Style")
35
- copy_btn = gr.Button("📋 Copy to Clipboard")
36
 
37
  btn.click(fn=get_joy_caption, inputs=image, outputs=prompt_out)
38
- "() => navigator.clipboard.writeText(document.getElementById('prompt_out').value)"
39
-
40
  if __name__ == "__main__":
41
  demo.launch()
 
28
 
29
  with gr.Row():
30
  image = gr.Image(type="filepath", label="Upload or Paste Image")
31
+ prompt_out = gr.Textbox(label="Generated Prompt", lines=2, show_copy_button=True)
32
 
33
  with gr.Row():
34
  btn = gr.Button("Get Style")
 
35
 
36
  btn.click(fn=get_joy_caption, inputs=image, outputs=prompt_out)
37
+
 
38
  if __name__ == "__main__":
39
  demo.launch()