Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
-
from chatbot import model_inference,
|
4 |
from voice_chat import respond
|
5 |
|
6 |
# Define Gradio theme
|
@@ -18,21 +18,19 @@ theme = gr.themes.Soft(
|
|
18 |
with gr.Blocks(
|
19 |
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;}""",
|
20 |
) as chat:
|
21 |
-
gr.Markdown("### Image Chat, Image Generation,
|
22 |
gr.ChatInterface(
|
23 |
fn=model_inference,
|
24 |
chatbot = chatbot,
|
25 |
-
examples=EXAMPLES,
|
26 |
multimodal=True,
|
27 |
-
cache_examples=False,
|
28 |
autofocus=False,
|
29 |
concurrency_limit=10,
|
30 |
)
|
31 |
|
32 |
# Voice chat block
|
33 |
with gr.Blocks() as voice:
|
34 |
-
gr.Markdown("
|
35 |
-
gr.HTML("<a href='https://huggingface.co/spaces/KingNish/Voicee'>https://huggingface.co/spaces/KingNish/Voicee</a>")
|
36 |
|
37 |
with gr.Blocks() as image:
|
38 |
gr.HTML("<iframe src='https://kingnish-image-gen-pro.hf.space' width='100%' height='2000px' style='border-radius: 8px;'></iframe>")
|
@@ -45,9 +43,9 @@ with gr.Blocks() as video:
|
|
45 |
gr.TabbedInterface([ instant2], ['Instant🎥'])
|
46 |
|
47 |
# Main application block
|
48 |
-
with gr.Blocks(theme=theme, title="
|
49 |
-
gr.Markdown("#
|
50 |
-
gr.TabbedInterface([chat, voice, image, video], ['💬 SuperChat','
|
51 |
|
52 |
demo.queue(max_size=300)
|
53 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
+
from chatbot import model_inference, chatbot
|
4 |
from voice_chat import respond
|
5 |
|
6 |
# Define Gradio theme
|
|
|
18 |
with gr.Blocks(
|
19 |
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;}""",
|
20 |
) as chat:
|
21 |
+
gr.Markdown("### Image Chat, Image Generation, Normal Chat")
|
22 |
gr.ChatInterface(
|
23 |
fn=model_inference,
|
24 |
chatbot = chatbot,
|
|
|
25 |
multimodal=True,
|
26 |
+
# cache_examples=False,
|
27 |
autofocus=False,
|
28 |
concurrency_limit=10,
|
29 |
)
|
30 |
|
31 |
# Voice chat block
|
32 |
with gr.Blocks() as voice:
|
33 |
+
gr.Markdown("<iframe src='https://huggingface.co/spaces/AdamyaG/OpenGPT4oFREEUNLIMITED' width='100%' height='2000px' style='border-radius: 8px;'></iframe>")
|
|
|
34 |
|
35 |
with gr.Blocks() as image:
|
36 |
gr.HTML("<iframe src='https://kingnish-image-gen-pro.hf.space' width='100%' height='2000px' style='border-radius: 8px;'></iframe>")
|
|
|
43 |
gr.TabbedInterface([ instant2], ['Instant🎥'])
|
44 |
|
45 |
# Main application block
|
46 |
+
with gr.Blocks(theme=theme, title="Welcome to the Future of Fashion") as demo:
|
47 |
+
gr.Markdown("# AI Wardrobe")
|
48 |
+
gr.TabbedInterface([chat, voice, image, video], ['💬 SuperChat - StyleDialogue','🗣 Voice Chat- SilkTalk', '🖼 Image Engine - StyleVision', '🎥 Video Engine - ShowcaseVision'])
|
49 |
|
50 |
demo.queue(max_size=300)
|
51 |
demo.launch()
|