Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,21 +33,25 @@ A1 = gr.ChatInterface(predict,
|
|
| 33 |
retry_btn=None,
|
| 34 |
clear_btn="Clear Conversation")
|
| 35 |
|
| 36 |
-
A2 = gr.load(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
"models/Salesforce/blip-image-captioning-large",
|
| 38 |
title=" ",
|
| 39 |
description="Take and Upload a Photo or Existing Image, I'll Give You Its Description",
|
| 40 |
outputs=[gr.Textbox(label="I see...")],
|
| 41 |
theme= gr.themes.Glass(primary_hue="neutral", neutral_hue="slate"))
|
| 42 |
|
| 43 |
-
|
| 44 |
"models/stabilityai/stable-diffusion-xl-base-1.0",
|
| 45 |
inputs=[gr.Textbox(label="Enter Your Image Description")],
|
| 46 |
outputs=[gr.Image(label="Image")],
|
| 47 |
title=" ",
|
| 48 |
description="Bring Your Imagination Into Existence On The Digital Canvas With COLLEAGUE, Powered With Stable Diffusion",
|
| 49 |
allow_flagging="never",
|
| 50 |
-
examples=["A
|
| 51 |
|
| 52 |
-
pcp = gr.TabbedInterface([A1, A2, A3], ["Chat", "Describe", "Create"], theme= gr.themes.Glass(primary_hue="neutral", neutral_hue="slate"))
|
| 53 |
pcp.queue().launch()
|
|
|
|
| 33 |
retry_btn=None,
|
| 34 |
clear_btn="Clear Conversation")
|
| 35 |
|
| 36 |
+
A2 = gr.load("models/openai/whisper-large-v3",
|
| 37 |
+
title=" ",
|
| 38 |
+
description="Transcribe Speech and Audio Files")
|
| 39 |
+
|
| 40 |
+
A3 = gr.load(
|
| 41 |
"models/Salesforce/blip-image-captioning-large",
|
| 42 |
title=" ",
|
| 43 |
description="Take and Upload a Photo or Existing Image, I'll Give You Its Description",
|
| 44 |
outputs=[gr.Textbox(label="I see...")],
|
| 45 |
theme= gr.themes.Glass(primary_hue="neutral", neutral_hue="slate"))
|
| 46 |
|
| 47 |
+
A4 = gr.load(
|
| 48 |
"models/stabilityai/stable-diffusion-xl-base-1.0",
|
| 49 |
inputs=[gr.Textbox(label="Enter Your Image Description")],
|
| 50 |
outputs=[gr.Image(label="Image")],
|
| 51 |
title=" ",
|
| 52 |
description="Bring Your Imagination Into Existence On The Digital Canvas With COLLEAGUE, Powered With Stable Diffusion",
|
| 53 |
allow_flagging="never",
|
| 54 |
+
examples=["A gigantic celtic leprechaun wandering the streets of downtown Atlanta","A child eating pizza in a Brazilian favela"])
|
| 55 |
|
| 56 |
+
pcp = gr.TabbedInterface([A1, A2, A3, A4], ["Chat", "Transcribe", "Describe", "Create"], theme= gr.themes.Glass(primary_hue="neutral", neutral_hue="slate"))
|
| 57 |
pcp.queue().launch()
|