tori29umai commited on
Commit
088a973
1 Parent(s): 6e3a021
Files changed (2) hide show
  1. requirements.txt +1 -2
  2. utils/prompt_analysis.py +3 -3
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio==4.29.0
2
  accelerate
3
  transformers
4
  torchvision
@@ -7,7 +7,6 @@ accelerate
7
  invisible-watermark
8
  huggingface-hub
9
  hf-transfer
10
- gradio_imageslider==0.0.20
11
  compel
12
  opencv-python
13
  numpy
 
1
+ gradio==4.36.1
2
  accelerate
3
  transformers
4
  torchvision
 
7
  invisible-watermark
8
  huggingface-hub
9
  hf-transfer
 
10
  compel
11
  opencv-python
12
  numpy
utils/prompt_analysis.py CHANGED
@@ -18,11 +18,11 @@ class PromptAnalysis:
18
  def layout(self, input_image_path):
19
  with gr.Column():
20
  with gr.Row():
21
- self.prompt = gr.Textbox("prompt", lines=3)
22
  with gr.Row():
23
- self.negative_prompt = gr.Textbox("negative_prompt", lines=3, value=self.default_nagative_prompt)
24
  with gr.Row():
25
- self.prompt_analysis_button = gr.Button("analyze_prompt")
26
 
27
  self.prompt_analysis_button.click(
28
  self.process_prompt_analysis,
 
18
  def layout(self, input_image_path):
19
  with gr.Column():
20
  with gr.Row():
21
+ self.prompt = gr.Textbox(label="prompt", lines=3)
22
  with gr.Row():
23
+ self.negative_prompt = gr.Textbox(label="negative_prompt", lines=3, value=self.default_nagative_prompt)
24
  with gr.Row():
25
+ self.prompt_analysis_button = gr.Button()
26
 
27
  self.prompt_analysis_button.click(
28
  self.process_prompt_analysis,