natgluons commited on
Commit
c6a39fc
Β·
1 Parent(s): 47eb115

Improve readability and contrast

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +6 -13
  3. requirements.txt +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸ’–
4
  colorFrom: pink
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 4.0.0
8
  app_file: app.py
9
  pinned: false
10
  ---
 
4
  colorFrom: pink
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: 4.16.0
8
  app_file: app.py
9
  pinned: false
10
  ---
app.py CHANGED
@@ -8,7 +8,7 @@ title = "πŸ’– Pickup Line Generator"
8
  description = """
9
  <div style="text-align: center; max-width: 650px; margin: 0 auto;">
10
  <div>
11
- <p>Generate fun, clever, or cringey pickup lines using SmolLM-135M! Select a vibe and click generate to get started! 😏</p>
12
  </div>
13
  </div>
14
  """
@@ -233,6 +233,11 @@ label {
233
  margin-top: 1rem !important;
234
  }
235
 
 
 
 
 
 
236
  /* Footer styling */
237
  .footer-text {
238
  color: #666666 !important;
@@ -269,18 +274,6 @@ with gr.Blocks(theme=gr.themes.Soft(), css=custom_css) as demo:
269
  )
270
  copy_btn = gr.Button("πŸ“‹ Copy to Clipboard", elem_classes=["copy-btn"])
271
 
272
- # Example inputs with custom styling
273
- gr.Examples(
274
- examples=[
275
- ["romantic"],
276
- ["cheesy"],
277
- ["nerdy"],
278
- ["cringe"],
279
- ["flirty"]
280
- ],
281
- inputs=[vibe_dropdown]
282
- )
283
-
284
  generate_btn.click(
285
  fn=generate_pickup_line,
286
  inputs=[vibe_dropdown],
 
8
  description = """
9
  <div style="text-align: center; max-width: 650px; margin: 0 auto;">
10
  <div>
11
+ <p style="color: #333333; font-size: 1.1rem; font-weight: 500;">Generate fun, clever, or cringey pickup lines using SmolLM-135M! Select a vibe and click generate to get started! 😏</p>
12
  </div>
13
  </div>
14
  """
 
233
  margin-top: 1rem !important;
234
  }
235
 
236
+ .gr-samples button {
237
+ color: #333333 !important;
238
+ font-weight: 500 !important;
239
+ }
240
+
241
  /* Footer styling */
242
  .footer-text {
243
  color: #666666 !important;
 
274
  )
275
  copy_btn = gr.Button("πŸ“‹ Copy to Clipboard", elem_classes=["copy-btn"])
276
 
 
 
 
 
 
 
 
 
 
 
 
 
277
  generate_btn.click(
278
  fn=generate_pickup_line,
279
  inputs=[vibe_dropdown],
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio>=4.0.0
2
  torch>=2.0.0
3
  transformers>=4.30.0
4
  huggingface-hub>=0.19.0
 
1
+ gradio>=4.16.0
2
  torch>=2.0.0
3
  transformers>=4.30.0
4
  huggingface-hub>=0.19.0