Moibe commited on
Commit
3bdcdd9
·
1 Parent(s): 7dc0f86

Label configurations

Browse files
Files changed (1) hide show
  1. app.py +6 -11
app.py CHANGED
@@ -101,8 +101,6 @@ def cambio():
101
  # gr.State.capsule = capsule
102
  # gr.State.tokens = 20
103
 
104
- #Headers
105
-
106
 
107
  #Inputs
108
  source_image = gr.Image(label="Source")
@@ -112,7 +110,8 @@ destination_image = gr.Image(label="Destination")
112
  result_image = gr.Image(label="Blend Result")
113
  txt_console = gr.Textbox(label="Console", value="AI Engine Ready...", interactive=False)
114
  lbl_console = gr.Label(value="AI Engine ready...", container=True)
115
- btn_buy = gr.ClearButton("Buy More", visible=True, size='lg')
 
116
 
117
  #Gradio themes:
118
  # — gr.themes.Base()
@@ -121,17 +120,14 @@ btn_buy = gr.ClearButton("Buy More", visible=True, size='lg')
121
  # — gr.themes.Monochrome()
122
  # — gr.themes.Soft()
123
 
124
- with gr.Blocks(css="footer {visibility: hidden}", theme=gr.themes.Base()) as main:
125
 
126
  with gr.Row():
127
 
128
  gr.Markdown()
129
  gr.Markdown()
130
- nueva_label = gr.Label("Credits")
131
-
132
-
133
- #lbl_msg.change(fn=cambio, lbl_msg)
134
- #btn_buy.click(fn=cambio, outputs=mrk_title)
135
 
136
  with gr.Row():
137
 
@@ -142,5 +138,4 @@ with gr.Blocks(css="footer {visibility: hidden}", theme=gr.themes.Base()) as mai
142
  outputs=[result_image, txt_console, lbl_console, btn_buy],
143
  )
144
 
145
- main.launch(auth=authenticate)
146
- #demo.launch()
 
101
  # gr.State.capsule = capsule
102
  # gr.State.tokens = 20
103
 
 
 
104
 
105
  #Inputs
106
  source_image = gr.Image(label="Source")
 
110
  result_image = gr.Image(label="Blend Result")
111
  txt_console = gr.Textbox(label="Console", value="AI Engine Ready...", interactive=False)
112
  lbl_console = gr.Label(value="AI Engine ready...", container=True)
113
+ btn_buy = gr.DuplicateButton("Buy More", visible=True, size='lg')
114
+ #btn_buy.click(fn=cambio, outputs=mrk_title)
115
 
116
  #Gradio themes:
117
  # — gr.themes.Base()
 
120
  # — gr.themes.Monochrome()
121
  # — gr.themes.Soft()
122
 
123
+ with gr.Blocks(theme=gr.themes.Base(), css="footer {visibility: hidden}") as main:
124
 
125
  with gr.Row():
126
 
127
  gr.Markdown()
128
  gr.Markdown()
129
+ lbl_credits = gr.Label(label="Credits" value="20", color="#ffa500")
130
+
 
 
 
131
 
132
  with gr.Row():
133
 
 
138
  outputs=[result_image, txt_console, lbl_console, btn_buy],
139
  )
140
 
141
+ main.launch(auth=authenticate)