yasserrmd commited on
Commit
0a260e6
·
verified ·
1 Parent(s): 349b03b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ css = """
22
  body {background-color: #f0f8ff; font-family: 'Arial', sans-serif;}
23
  .gradio-container {max-width: 900px; margin: 0 auto; border-radius: 15px; padding: 30px; background-color: white; box-shadow: 0 4px 8px rgba(0,0,0,0.1);}
24
  textarea {border-radius: 10px; padding: 15px; font-size: 16px; border: 2px solid #ddd; width: 100%;}
25
- button {background-color: #4caf50; color: white; border-radius: 10px; padding: 10px 15px; font-size: 16px; border: none; cursor: pointer; margin-top: 10px; margin-right: 5px;}
26
  button:hover {background-color: #45a049;}
27
  h1 {color: #333; font-size: 36px; text-align: center; margin-bottom: 20px;}
28
  h2 {color: #555; font-size: 24px; margin-bottom: 10px;}
@@ -58,7 +58,7 @@ with gr.Blocks(css=css) as journal_app:
58
  # Align buttons using rows and columns for better layout
59
  with gr.Row():
60
  for i, entry in enumerate(example_entries):
61
- gr.Button(f"Example {i+1}").click(fn=lambda e=entry: fill_prompt(e), outputs=prompt_textbox)
62
 
63
  with gr.Row():
64
  # Output for generated text
 
22
  body {background-color: #f0f8ff; font-family: 'Arial', sans-serif;}
23
  .gradio-container {max-width: 900px; margin: 0 auto; border-radius: 15px; padding: 30px; background-color: white; box-shadow: 0 4px 8px rgba(0,0,0,0.1);}
24
  textarea {border-radius: 10px; padding: 15px; font-size: 16px; border: 2px solid #ddd; width: 100%;}
25
+ button {background-color: #4caf50; color: #000000; border-radius: 10px; padding: 10px 15px; font-size: 16px; border: none; cursor: pointer; margin-top: 10px; margin-right: 5px;}
26
  button:hover {background-color: #45a049;}
27
  h1 {color: #333; font-size: 36px; text-align: center; margin-bottom: 20px;}
28
  h2 {color: #555; font-size: 24px; margin-bottom: 10px;}
 
58
  # Align buttons using rows and columns for better layout
59
  with gr.Row():
60
  for i, entry in enumerate(example_entries):
61
+ gr.Button(entry).click(fn=lambda e=entry: fill_prompt(e), outputs=prompt_textbox)
62
 
63
  with gr.Row():
64
  # Output for generated text