Upload folder using huggingface_hub
Browse files
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 |
-
|
| 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()
|