File size: 2,623 Bytes
e547b24
5392ab0
97cd03b
d0338ea
 
 
 
97cd03b
d0338ea
adb8560
00dff1b
 
97cd03b
 
 
00dff1b
 
97cd03b
 
 
 
 
 
 
00dff1b
97cd03b
 
 
 
 
 
 
 
8a2ecd4
97cd03b
 
 
 
 
 
8a2ecd4
97cd03b
 
 
 
 
 
8a2ecd4
97cd03b
 
 
 
 
 
8a2ecd4
97cd03b
 
 
 
 
 
8a2ecd4
97cd03b
adb8560
97cd03b
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import gradio as gr

# Define Gradio theme with valid color shortcuts and custom fonts
theme = gr.themes.Soft(
    primary_hue="indigo",
    secondary_hue="emerald",
    neutral_hue="gray",
    font=["Rubik"]  # Correctly passing as a list or using GoogleFont
)

# Create Gradio blocks with custom CSS for enhanced UI
with gr.Blocks(
    theme=theme,
    title="RocketGPT - AI-Powered Chatbot",
    css="""
        .gradio-container {background-color: #f0f4f8; padding: 20px;}
        h1, h2, h3, h4, h5, h6 {color: #4a5568;}
        .gradio-container .avatar-container {height: 40px; width: 40px; border-radius: 50%; overflow: hidden;}
        #duplicate-button {margin: auto; color: white; background: #2d3748; border-radius: 100vh; padding: 8px 16px;}
        .tab-nav-button {background-color: #e2e8f0; border-radius: 8px;}
        .tab-nav-button.selected {background-color: #cbd5e0;}
    """
) as demo:
    gr.Markdown("# 🚀 RocketGPT  - AI-Powered Chatbot")

    # Define individual tabs as separate Blocks
    with gr.Tabs():
        with gr.Tab("💬 SuperChat"):
            gr.HTML("""
                <iframe src='https://Qwen-QwQ-32B-preview.hf.space' 
                        width='100%' height='800px' 
                        style='border-radius: 8px; border: none;'></iframe>
            """)

        with gr.Tab("🗣️ Speech Generator"):
            gr.HTML("""
                <iframe src='https://wifix199-Text-to-speech-LuminaIQ.hf.space' 
                        width='100%' height='800px' 
                        style='border-radius: 8px; border: none;'></iframe>
            """)

        with gr.Tab("🖼️ Image Generator"):
            gr.HTML("""
                <iframe src='https://wifix199-Text-to-image-LuminaIQ.hf.space' 
                        width='100%' height='800px' 
                        style='border-radius: 8px; border: none;'></iframe>
            """)

        with gr.Tab("🎥 Video Generator"):
            gr.HTML("""
                <iframe src='https://kingnish-instant-video.hf.space' 
                        width='100%' height='800px' 
                        style='border-radius: 8px; border: none;'></iframe>
            """)

        with gr.Tab("🖼️ Finegrain"):
            gr.HTML("""
                <iframe src='https://finegrain-finegrain-object-cutter.hf.space' 
                        width='100%' height='800px' 
                        style='border-radius: 8px; border: none;'></iframe>
            """)

# Launch the app with queue support
demo.queue(max_size=300)
demo.launch(server_name="0.0.0.0", server_port=7860, share=True)