AdamyaG commited on
Commit
1b39af0
1 Parent(s): 8b4641b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
  import spaces
3
- from chatbot import model_inference, EXAMPLES, chatbot
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, Image classification and Normal Chat")
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("# Try Voice Chatfrom Below Link:")
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="OpenGPT 4o DEMO") as demo:
49
- gr.Markdown("# OpenGPT 4o")
50
- gr.TabbedInterface([chat, voice, image, video], ['💬 SuperChat','🗣️ Voice Chat', '🖼️ Image Engine', '🎥 Video Engine'])
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()