File size: 1,973 Bytes
c9ca579
e1e239a
1b39af0
1c3216f
07d03e7
5b0f841
a185be6
1c3216f
 
a185be6
1c3216f
5b0f841
07d03e7
995e163
1c3216f
07d03e7
5b0f841
62c47ad
 
 
 
 
8afa015
62c47ad
 
06597e0
1c3216f
 
68f8169
1c3216f
06597e0
d409f50
1c0af73
 
cd995bb
1c0af73
 
 
1c3216f
06597e0
fabaa3c
1b39af0
 
 
07d03e7
cada336
48006fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import gradio as gr
import spaces
from chatbot import model_inference, chatbot
from voice_chat import respond

# Define Gradio theme
theme = gr.themes.Soft(
    primary_hue="sky",
    secondary_hue="violet",
    neutral_hue="gray",
    font=[gr.themes.GoogleFont('orbitron')]
)


# Create Gradio blocks for different functionalities

# Chat interface block
# with gr.Blocks(
#         # css=""".gradio-container .avatar-container {height: 40px width: 40px !important;} #duplicate-button {margin: auto; color: white; background: #f1a139; border-radius: 100vh; margin-top: 2px; margin-bottom: 2px;}""",
# ) as chat:
#     gr.HTML("<iframe src='https://adamyag-opengpt4ofreeunlimited.hf.space' width='100%'	height='2000px' style='border-radius: 8px;'></iframe>")

with gr.Blocks() as chat:
    gr.HTML("<iframe src='https://adamyag-opengpt4ofreeunlimited.hf.space' width='100%'	height='2000px' style='border-radius: 8px;'></iframe>")


# Voice chat block
with gr.Blocks() as voice:
    gr.HTML("<iframe src='https://pratham0011-ai-voice-assistance.hf.space' width='100%' height='2000px' style='border-radius: 8px;'  allow='microphone'></iframe>")

with gr.Blocks() as image:
    gr.HTML("<iframe src='https://kingnish-image-gen-pro.hf.space' width='100%' height='2000px' style='border-radius: 8px;'></iframe>")

with gr.Blocks() as instant2:
    gr.HTML("<iframe src='https://kingnish-instant-video.hf.space' width='100%' height='3000px' style='border-radius: 8px;'></iframe>")

with gr.Blocks() as video:
    gr.Markdown("""More Models are coming""")
    gr.TabbedInterface([ instant2], ['Instant🎥'])     

# Main application block
with gr.Blocks(theme=theme, title="Welcome to the Future of Fashion") as demo:
    gr.Markdown("# AI Wardrobe")
    gr.TabbedInterface([chat, voice, image, video], ['💬 SuperChat - StyleDialogue','🗣 Voice Chat- SilkTalk', '🖼 Image Engine - StyleVision', '🎥 Video Engine - ShowcaseVision'])

demo.queue(max_size=300)
demo.launch()