Spaces:
Runtime error
Runtime error
updated layout and headines
Browse files
app.py
CHANGED
|
@@ -55,22 +55,25 @@ def img2para(cnet_img2):
|
|
| 55 |
demo = gr.Blocks()
|
| 56 |
|
| 57 |
with demo:
|
| 58 |
-
gr.HTML("<h2><center>
|
| 59 |
-
gr.HTML("""<div style="text-align:center;"><iframe src="https://gifer.com/embed/25cz" width=480 height=270.000 frameBorder="0" allowFullScreen></iframe></div>""")
|
| 60 |
with gr.Row():
|
| 61 |
audio_mic = gr.Audio(source="microphone", type="filepath")
|
| 62 |
with gr.Column():
|
| 63 |
btn_whisper = gr.Button("Transcribe👇").style(full_width=True)
|
| 64 |
prompt = gr.Textbox(label="prompt for SD image generation", interactive=False) #, value='a black swan')
|
|
|
|
| 65 |
with gr.Row():
|
| 66 |
btn_sd = gr.Button("Generate Image👉").style(full_width=True)
|
| 67 |
sd_img = gr.Image(type='filepath') #value="/content/e321040c-b2eb-4550-8aaa-4cd416a7602d/tmpwyiwdr_1.jpg",
|
|
|
|
| 68 |
with gr.Row():
|
| 69 |
with gr.Column():
|
| 70 |
cnet_prompt = gr.Textbox(label="prompt for SD image generation")
|
| 71 |
btn_cnet = gr.Button("ControlNet Output👉").style(full_width=True)
|
| 72 |
cnet_img1 = gr.Image(type='filepath')
|
| 73 |
cnet_img2 = gr.Image(type='filepath')
|
|
|
|
| 74 |
with gr.Row():
|
| 75 |
btn_Img2para = gr.Button("Lets understand Image with Text👉").style(full_width=True)
|
| 76 |
paragraph = gr.Textbox(label="Image to Paragraph generation")
|
|
@@ -86,12 +89,12 @@ with demo:
|
|
| 86 |
demo_chain_events = gr.Blocks()
|
| 87 |
|
| 88 |
with demo_chain_events:
|
| 89 |
-
gr.HTML("<h2><center>Chaining Gradio Clients using Events
|
| 90 |
-
gr.HTML("""<div style="text-align:center;"><iframe src="https://gifer.com/embed/2YYc" width=480 height=280.286 frameBorder="0" allowFullScreen></iframe></div>""")
|
| 91 |
audio_mic = gr.Audio(source="microphone", type="filepath")
|
| 92 |
btn_whisper = gr.Button("Trigger the Chained Events🚀🚀").style(full_width=True)
|
| 93 |
prompt = gr.Textbox(label="Getting the Prompt for Stable Diffusion using Whisper Gradio Client", interactive=False,) #value='a black swan'
|
| 94 |
-
|
| 95 |
with gr.Row():
|
| 96 |
with gr.Column():
|
| 97 |
html_sd = gr.HTML("<h1><center>Stable Diffusion Generated Image👇</center></h1>") #.style(full_width=True)
|
|
@@ -104,6 +107,7 @@ with demo_chain_events:
|
|
| 104 |
with gr.Row():
|
| 105 |
cnet_img1 = gr.Image(type='filepath')
|
| 106 |
cnet_img2 = gr.Image(type='filepath')
|
|
|
|
| 107 |
with gr.Row():
|
| 108 |
with gr.Column():
|
| 109 |
html_Img2para = gr.HTML("<h1><center>Image to Paragraph output👇</center></h1>") #.style(full_width=True)
|
|
@@ -119,7 +123,8 @@ with demo_chain_events:
|
|
| 119 |
|
| 120 |
demo_joint = gr.Blocks(theme=gr.themes.Monochrome())
|
| 121 |
with demo_joint:
|
| 122 |
-
gr.HTML("<h1><center>🚀Revolutionize Your App Development with Gradio Client🏗️</center></h1>
|
|
|
|
| 123 |
with gr.Row():
|
| 124 |
with gr.Box():
|
| 125 |
demo.render()
|
|
|
|
| 55 |
demo = gr.Blocks()
|
| 56 |
|
| 57 |
with demo:
|
| 58 |
+
gr.HTML("<h2><center>Using Multiple Gradio Clients</center></h2><br>")
|
| 59 |
+
gr.HTML("""<div style="text-align:center;"><iframe src="https://gifer.com/embed/25cz" width=480 height=270.000 frameBorder="0" allowFullScreen></iframe></div><br>""")
|
| 60 |
with gr.Row():
|
| 61 |
audio_mic = gr.Audio(source="microphone", type="filepath")
|
| 62 |
with gr.Column():
|
| 63 |
btn_whisper = gr.Button("Transcribe👇").style(full_width=True)
|
| 64 |
prompt = gr.Textbox(label="prompt for SD image generation", interactive=False) #, value='a black swan')
|
| 65 |
+
gr.HTML("<br>")
|
| 66 |
with gr.Row():
|
| 67 |
btn_sd = gr.Button("Generate Image👉").style(full_width=True)
|
| 68 |
sd_img = gr.Image(type='filepath') #value="/content/e321040c-b2eb-4550-8aaa-4cd416a7602d/tmpwyiwdr_1.jpg",
|
| 69 |
+
gr.HTML("<br>")
|
| 70 |
with gr.Row():
|
| 71 |
with gr.Column():
|
| 72 |
cnet_prompt = gr.Textbox(label="prompt for SD image generation")
|
| 73 |
btn_cnet = gr.Button("ControlNet Output👉").style(full_width=True)
|
| 74 |
cnet_img1 = gr.Image(type='filepath')
|
| 75 |
cnet_img2 = gr.Image(type='filepath')
|
| 76 |
+
gr.HTML("<br>")
|
| 77 |
with gr.Row():
|
| 78 |
btn_Img2para = gr.Button("Lets understand Image with Text👉").style(full_width=True)
|
| 79 |
paragraph = gr.Textbox(label="Image to Paragraph generation")
|
|
|
|
| 89 |
demo_chain_events = gr.Blocks()
|
| 90 |
|
| 91 |
with demo_chain_events:
|
| 92 |
+
gr.HTML("<h2><center>Chaining Multiple Gradio Clients using Events </center></h2><br>")
|
| 93 |
+
gr.HTML("""<div style="text-align:center;"><iframe src="https://gifer.com/embed/2YYc" width=480 height=280.286 frameBorder="0" allowFullScreen></iframe></div><br>""")
|
| 94 |
audio_mic = gr.Audio(source="microphone", type="filepath")
|
| 95 |
btn_whisper = gr.Button("Trigger the Chained Events🚀🚀").style(full_width=True)
|
| 96 |
prompt = gr.Textbox(label="Getting the Prompt for Stable Diffusion using Whisper Gradio Client", interactive=False,) #value='a black swan'
|
| 97 |
+
gr.HTML("<br>")
|
| 98 |
with gr.Row():
|
| 99 |
with gr.Column():
|
| 100 |
html_sd = gr.HTML("<h1><center>Stable Diffusion Generated Image👇</center></h1>") #.style(full_width=True)
|
|
|
|
| 107 |
with gr.Row():
|
| 108 |
cnet_img1 = gr.Image(type='filepath')
|
| 109 |
cnet_img2 = gr.Image(type='filepath')
|
| 110 |
+
gr.HTML("<br>")
|
| 111 |
with gr.Row():
|
| 112 |
with gr.Column():
|
| 113 |
html_Img2para = gr.HTML("<h1><center>Image to Paragraph output👇</center></h1>") #.style(full_width=True)
|
|
|
|
| 123 |
|
| 124 |
demo_joint = gr.Blocks(theme=gr.themes.Monochrome())
|
| 125 |
with demo_joint:
|
| 126 |
+
gr.HTML("<h1><center>🚀Revolutionize Your App Development with Gradio Client🏗️</center></h1>")
|
| 127 |
+
gr.HTML("<h3> Using Multiple Clients at Once : Whisper Client -> Stable Diffusion Client -> ControlNet Client -> Image2Paragraph Client</h3><br>")
|
| 128 |
with gr.Row():
|
| 129 |
with gr.Box():
|
| 130 |
demo.render()
|