akshayvkt commited on
Commit
05c342c
·
1 Parent(s): f3c448c

Update app.py

Browse files

Adding description using gr.markdown

Files changed (1) hide show
  1. app.py +11 -26
app.py CHANGED
@@ -7,34 +7,19 @@ import os
7
  openai.api_key = os.environ.get('OPENAI_API_KEY')
8
 
9
  css = """
10
- .gr-button {
11
- white-space: nowrap;
12
  }
13
  """
14
- ui = gr.Blocks(css=css)
15
- with ui:
16
-
17
- gr.HTML("""
18
- <div style="text-align: center; max-width: 700px; margin: 0 auto;">
19
- <div
20
- style="
21
- display: inline-flex;
22
- align-items: center;
23
- gap: 0.8rem;
24
- font-size: 1.75rem;
25
- "
26
- >
27
-
28
- <h1 style="font-weight: 900; margin-bottom: 7px; line-height: normal;">
29
- Talk to AI Steve Jobs: Audio-to-Text+Audio generation
30
- </h1>
31
- </div>
32
- </div>
33
- <p>
34
- Have a back-and-forth conversation with AI Steve Jobs, powered by ChatGPT + Whisper + ElevenLabs + HuggingFace
35
- <br/>
36
- <p/>
37
- """)
38
 
39
  messages = [{"role": "system", "content": 'You are Steve Jobs. Respond to all input in 25 words or less.'}]
40
 
 
7
  openai.api_key = os.environ.get('OPENAI_API_KEY')
8
 
9
  css = """
10
+ #col-container {max-width: 80%; margin-left: auto; margin-right: auto;}
11
+ #header {text-align: center;}
12
  }
13
  """
14
+ with gr.Blocks(css=css) as ui:
15
+
16
+ with gr.Column(elem_id="col-container"):
17
+ gr.Markdown("""## Talk to AI Steve Jobs: Audio-to-Text+Audio generation
18
+ Powered by ChatGPT + Whisper + ElevenLabs + HuggingFace <br>
19
+ <br>
20
+ """,
21
+ elem_id="header")
22
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  messages = [{"role": "system", "content": 'You are Steve Jobs. Respond to all input in 25 words or less.'}]
25