suayptalha commited on
Commit
147def5
·
verified ·
1 Parent(s): 943e0d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -70,12 +70,16 @@ def show_image():
70
 
71
  with gr.Blocks() as demo:
72
  with gr.Column():
73
- # Buton boyutunu scale parametresi ile ayarlıyoruz
74
- image_input = gr.Image(label="Resim Yükleyin", type="filepath") # Başta görünür
75
- image_input.update(visible=False) # Başta görünmez yapıyoruz
76
 
 
 
 
 
77
  gr.Button("Resim Ekle", scale=2).click(lambda: image_input.update(visible=True)) # Butona tıklandığında resmi göster
78
 
 
79
  user_message = gr.Textbox(label="Mesajınızı Yazın", placeholder="Yazınızı buraya yazın...")
80
 
81
  # Sohbetin çıkışı
 
70
 
71
  with gr.Blocks() as demo:
72
  with gr.Column():
73
+ # Resim yükleme alanı
74
+ image_input = gr.Image(label="Resim Yükleyin", type="filepath")
 
75
 
76
+ # Başlangıçta resim yükleme alanını gizli tutmak
77
+ image_input = gr.Image(label="Resim Yükleyin", type="filepath", visible=False)
78
+
79
+ # Resim ekleme butonunun işlevselliği
80
  gr.Button("Resim Ekle", scale=2).click(lambda: image_input.update(visible=True)) # Butona tıklandığında resmi göster
81
 
82
+ # Mesaj yazma alanı
83
  user_message = gr.Textbox(label="Mesajınızı Yazın", placeholder="Yazınızı buraya yazın...")
84
 
85
  # Sohbetin çıkışı