AdamyaG commited on
Commit
62c47ad
1 Parent(s): a861b2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -13
app.py CHANGED
@@ -15,22 +15,18 @@ theme = gr.themes.Soft(
15
  # Create Gradio blocks for different functionalities
16
 
17
  # Chat interface block
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.HTML("<iframe src='https://adamyag-opengpt4ofreeunlimited.hf.space' 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>")
 
15
  # Create Gradio blocks for different functionalities
16
 
17
  # Chat interface block
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.HTML("<iframe src='https://adamyag-opengpt4ofreeunlimited.hf.space' width='100%' height='2000px' style='border-radius: 8px;'></iframe>")
22
+
23
+ with gr.Blocks as chat:
24
+ gr.HTML("<iframe src='https://adamyag-opengpt4ofreeunlimited.hf.space' width='100%' height='2000px' style='border-radius: 8px;'></iframe>")
25
+
 
 
 
 
26
 
27
  # Voice chat block
28
  with gr.Blocks() as voice:
29
+ gr.Markdown("""More Models are coming""")
30
 
31
  with gr.Blocks() as image:
32
  gr.HTML("<iframe src='https://kingnish-image-gen-pro.hf.space' width='100%' height='2000px' style='border-radius: 8px;'></iframe>")