LanHarmony commited on
Commit
a009035
1 Parent(s): ee54eed
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -136,7 +136,13 @@ class ConversationBot:
136
 
137
  return gr.update(visible = True)
138
 
139
- bot = ConversationBot({'Text2Image':'cuda:0', 'ImageCaptioning':'cuda:0',})
 
 
 
 
 
 
140
 
141
  with gr.Blocks(css="#chatbot .overflow-y-auto{height:500px}") as demo:
142
  with gr.Row():
 
136
 
137
  return gr.update(visible = True)
138
 
139
+ bot = ConversationBot({'Text2Image':'cuda:0',
140
+ 'ImageCaptioning':'cuda:0',
141
+ 'ImageEditing': 'cuda:0',
142
+ 'VisualQuestionAnswering': 'cuda:0',
143
+ 'Image2Canny':'cpu',
144
+ 'CannyText2Image':'cuda:0',
145
+ 'InstructPix2Pix':'cuda:0'})
146
 
147
  with gr.Blocks(css="#chatbot .overflow-y-auto{height:500px}") as demo:
148
  with gr.Row():