Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,6 +28,25 @@ def get_music(prompt):
|
|
| 28 |
return result
|
| 29 |
|
| 30 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
with gr.Row():
|
| 32 |
with gr.Column():
|
| 33 |
input_img = gr.Image(type="filepath")
|
|
|
|
| 28 |
return result
|
| 29 |
|
| 30 |
with gr.Blocks() as demo:
|
| 31 |
+
gr.HTML("""<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
| 32 |
+
<div
|
| 33 |
+
style="
|
| 34 |
+
display: inline-flex;
|
| 35 |
+
align-items: center;
|
| 36 |
+
gap: 0.8rem;
|
| 37 |
+
font-size: 1.75rem;
|
| 38 |
+
"
|
| 39 |
+
>
|
| 40 |
+
<h1 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
|
| 41 |
+
Image to Music
|
| 42 |
+
</h1>
|
| 43 |
+
</div>
|
| 44 |
+
<p style="margin-bottom: 10px; font-size: 94%">
|
| 45 |
+
Sends an image in to <a href="https://huggingface.co/spaces/pharma/CLIP-Interrogator" target="_blank">CLIP Interrogator</a>
|
| 46 |
+
to generate a text prompt which is then run through
|
| 47 |
+
Mubert text-to-image to generate music from the inout image ! !
|
| 48 |
+
</p>
|
| 49 |
+
</div>""")
|
| 50 |
with gr.Row():
|
| 51 |
with gr.Column():
|
| 52 |
input_img = gr.Image(type="filepath")
|