sanjanatule commited on
Commit
1c571f3
·
1 Parent(s): ea6ef25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -26
app.py CHANGED
@@ -32,14 +32,14 @@ HTML_TEMPLATE = """
32
 
33
  #app-header {
34
  text-align: center;
35
- background: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
36
  padding: 20px;
37
  border-radius: 10px;
38
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
39
  position: relative; /* To position the artifacts */
40
  }
41
  #app-header h1 {
42
- color: #f308eb;
43
  font-size: 2em;
44
  margin-bottom: 10px;
45
  }
@@ -76,33 +76,15 @@ HTML_TEMPLATE = """
76
  <div id="app-header">
77
  <!-- Artifacts -->
78
  <div class="artifact large"></div>
79
- <div class="artifact medium"></div>
80
- <div class="artifact small"></div>
 
81
  <!-- Content -->
82
- <h1>Shakespeare Dialogue Generator</h1>
83
- <p>Generate new dialogue for Shakespearean character by selecting character from dropdown.</p>
84
- <div style="display: flex; justify-content: center; gap: 20px; margin-top: 20px;">
85
- <div class="concept">
86
- <img src="https://github.com/santule/ERA/assets/20509836/b6b4031a-265d-43f6-bd59-813097c0022b" alt="Romeo">
87
- <div class="concept-description">Romeo</div>
88
- </div>
89
- <div class="concept">
90
- <img src="https://github.com/santule/ERA/assets/20509836/4333692c-54f7-42e4-b53a-14044c8151a3" alt="Juliet">
91
- <div class="concept-description">Juliet</div>
92
- </div>
93
- <div class="concept">
94
- <img src="https://github.com/santule/ERA/assets/20509836/7e03233a-bf1d-48aa-b156-46f525aa76c6" alt="Shakespeare">
95
- <div class="concept-description">Shakespeare</div>
96
- </div>
97
- <div class="concept">
98
- <img src="https://github.com/santule/ERA/assets/20509836/0dd19c74-72e5-4ea5-8f66-06b7655b81aa" alt="King Richard III">
99
- <div class="concept-description">King Richard III</div>
100
- </div>
101
- </div>
102
- </div>
103
  """
104
 
105
- with gr.Blocks() as interface:
106
  gr.HTML(value=HTML_TEMPLATE, show_label=False)
107
  with gr.Row():
108
  character_dropdown = gr.Dropdown(
 
32
 
33
  #app-header {
34
  text-align: center;
35
+ background: rgba(255, 255, 255, 0.3); /* Semi-transparent white */
36
  padding: 20px;
37
  border-radius: 10px;
38
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
39
  position: relative; /* To position the artifacts */
40
  }
41
  #app-header h1 {
42
+ color: #FF0000;
43
  font-size: 2em;
44
  margin-bottom: 10px;
45
  }
 
76
  <div id="app-header">
77
  <!-- Artifacts -->
78
  <div class="artifact large"></div>
79
+ <div class="artifact large"></div>
80
+ <div class="artifact large"></div>
81
+ <div class="artifact large"></div>
82
  <!-- Content -->
83
+ <h1>SHAKESPEARE DIALOGUE GENERATOR</h1>
84
+ <p>Generate dialogue for Shakespearean character by selecting character from dropdown.</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  """
86
 
87
+ with gr.Blocks(theme=gr.themes.Glass(),css=".gradio-container {background: url('file=https://github.com/santule/ERA/assets/20509836/b6b4031a-265d-43f6-bd59-813097c0022b')}") as interface:
88
  gr.HTML(value=HTML_TEMPLATE, show_label=False)
89
  with gr.Row():
90
  character_dropdown = gr.Dropdown(