akshayvkt commited on
Commit
435dd55
·
1 Parent(s): e2c2451

Update app.py

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