contenteaseAI commited on
Commit
820777f
1 Parent(s): fd3db54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -7
app.py CHANGED
@@ -2,14 +2,32 @@ import gradio as gr
2
  from openai import OpenAI
3
  import os
4
 
5
- css = '''
6
- .gradio-container{max-width: 1000px !important}
7
- h1{text-align:center}
8
- footer {
9
- visibility: hidden
10
- }
11
  '''
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ACCESS_TOKEN = os.getenv("HF_TOKEN")
14
 
15
  client = OpenAI(
@@ -76,7 +94,6 @@ demo = gr.ChatInterface(
76
 
77
  ],
78
  css=css,
79
- theme="allenai/gradio-theme",
80
  )
81
  if __name__ == "__main__":
82
  demo.launch(debug = True)
 
2
  from openai import OpenAI
3
  import os
4
 
5
+ DESCRIPTION = '''
6
+ <div>
7
+ <h1 style="text-align: center;">ContenteaseAI custom trained model</h1>
8
+ </div>
 
 
9
  '''
10
 
11
+ LICENSE = """
12
+ <p/>
13
+ ---
14
+ For more information, visit our [website](https://contentease.ai).
15
+ """
16
+
17
+ PLACEHOLDER = """
18
+ <div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
19
+ <h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">ContenteaseAI Custom AI trained model</h1>
20
+ <p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Enter the text extracted from the PDF:</p>
21
+ </div>
22
+ """
23
+
24
+ css = """
25
+ h1 {
26
+ text-align: center;
27
+ display: block;
28
+ }
29
+ """
30
+
31
  ACCESS_TOKEN = os.getenv("HF_TOKEN")
32
 
33
  client = OpenAI(
 
94
 
95
  ],
96
  css=css,
 
97
  )
98
  if __name__ == "__main__":
99
  demo.launch(debug = True)