Gyufyjk commited on
Commit
7d6caa7
1 Parent(s): e642fa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -83,10 +83,18 @@ additional_inputs = [
83
  )
84
  ]
85
 
86
- with gr.Blocks() as demo:
87
  gr.Markdown("# Chatbot with Image Generation")
88
 
89
  with gr.Column():
 
 
 
 
 
 
 
 
90
  chat_input = gr.Textbox(label="User Input", placeholder="Type your message here...")
91
  chat_output = gr.Textbox(label="Chatbot Response")
92
  image_output = gr.Image(label="Generated Image", visible=False)
 
83
  )
84
  ]
85
 
86
+ with gr.Blocks(theme="Nymbo/Alyx_Theme") as demo:
87
  gr.Markdown("# Chatbot with Image Generation")
88
 
89
  with gr.Column():
90
+ chat_interface = gr.ChatInterface(
91
+ fn=generate_response,
92
+ chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
93
+ additional_inputs=additional_inputs,
94
+ theme="Nymbo/Alyx_Theme",
95
+ title="Mistral 7B v0.3 Chat with Mira"
96
+ )
97
+
98
  chat_input = gr.Textbox(label="User Input", placeholder="Type your message here...")
99
  chat_output = gr.Textbox(label="Chatbot Response")
100
  image_output = gr.Image(label="Generated Image", visible=False)