Rooni commited on
Commit
87db54d
·
verified ·
1 Parent(s): b2dc0dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -80,32 +80,32 @@ css_url = "https://neurixyufi-aihub.static.hf.space/style.css"
80
 
81
  # Получение CSS по ссылке
82
  response = requests.get(css_url)
83
- css = response.text + " .gradio-container{max-width: 700px !important} h1{text-align:center} #component-4 { height: 70vh !important; } #col-container { margin: 0 auto; max-width: 960px; }"
84
 
85
  # Create the Gradio interface
86
  with gr.Blocks(css=css) as demo:
87
  with gr.Column(elem_id="col-container"):
88
- gr.Markdown("# InstantX's SD3.5 IP Adapter")
89
 
90
  with gr.Row():
91
  with gr.Column():
92
  input_image = gr.Image(
93
- label="Input Image",
94
  type="pil"
95
  )
96
  scale = gr.Slider(
97
- label="Image Scale",
98
  minimum=0.0,
99
  maximum=1.0,
100
  step=0.1,
101
  value=0.7,
102
  )
103
  prompt = gr.Text(
104
- label="Prompt",
105
  max_lines=1,
106
- placeholder="Введите ваш запрос",
107
  )
108
- run_button = gr.Button("Сгенерировать", variant="primary")
109
 
110
  with gr.Column():
111
  result = gr.Image(label="Результат")
 
80
 
81
  # Получение CSS по ссылке
82
  response = requests.get(css_url)
83
+ css = response.text + " .gradio-container{max-width: 700px !important} h1{text-align:center} #col-container { margin: 0 auto; max-width: 960px; }"
84
 
85
  # Create the Gradio interface
86
  with gr.Blocks(css=css) as demo:
87
  with gr.Column(elem_id="col-container"):
88
+ gr.Markdown("# Ии Редактор")
89
 
90
  with gr.Row():
91
  with gr.Column():
92
  input_image = gr.Image(
93
+ label="Входное изображение",
94
  type="pil"
95
  )
96
  scale = gr.Slider(
97
+ label="Схожесть с оригиналом",
98
  minimum=0.0,
99
  maximum=1.0,
100
  step=0.1,
101
  value=0.7,
102
  )
103
  prompt = gr.Text(
104
+ label="Описание изображения",
105
  max_lines=1,
106
+ placeholder="Введите ваш запрос (Например: Сделай в аниме стиле)",
107
  )
108
+ run_button = gr.Button("Изменить", variant="primary")
109
 
110
  with gr.Column():
111
  result = gr.Image(label="Результат")