abdfajar707 commited on
Commit
7d9941e
·
verified ·
1 Parent(s): 408f80c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -34
app.py CHANGED
@@ -90,6 +90,42 @@ def generate(
90
  outputs.append(text)
91
  yield "".join(outputs)
92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
 
94
  chat_interface = gr.ChatInterface(
95
  fn=generate,
@@ -140,41 +176,7 @@ chat_interface = gr.ChatInterface(
140
  ],
141
  )
142
 
143
- DESCRIPTION = '''
144
- <div style="padding: 5px; text-align: left; display: flex; flex-direction: column; align-items: left;">
145
- <img src="https://sdgs.bappenas.go.id/repository/assets/bappenas_logo_square.png" style="width: 40%; max-width: 200px; height: auto; opacity: 0.55; ">
146
- <h2 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">AI-Interlinked System/Bappenas GPT</h2>
147
- </div>
148
- '''
149
-
150
- LICENSE = """
151
- <p/>
152
- ---
153
- Dibangun dari Meta Llama 3
154
- """
155
 
156
- PLACEHOLDER = """
157
- <div style="padding: 100px; text-align: center; display: flex; flex-direction: column; align-items: center;">
158
- <img src="https://cdn3.iconfinder.com/data/icons/human-resources-flat-3/48/150-4096.png" style="width: 1000; max-width: 200px; height: auto; opacity: 0.55; ">
159
- <h2 style="font-size: 20px; margin-bottom: 2px; opacity: 0.55;">Asisten Virtual Perencana</h2>
160
- <p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Silakan mulai tanya...</p>
161
- </div>
162
- """
163
-
164
-
165
- css = """
166
- h1 {
167
- text-align: center;
168
- display: block;
169
- }
170
- #duplicate-button {
171
- margin: auto;
172
- color: white;
173
- background: #1565c0;
174
- border-radius: 100vh;
175
- }
176
- """
177
- chatbot=gr.Chatbot(height=450, placeholder=PLACEHOLDER, label='Interlinked Sytem ChatInterface')
178
 
179
  with gr.Blocks(css=css, fill_height=True) as demo:
180
  gr.Markdown(DESCRIPTION)
 
90
  outputs.append(text)
91
  yield "".join(outputs)
92
 
93
+ DESCRIPTION = '''
94
+ <div style="padding: 5px; text-align: left; display: flex; flex-direction: column; align-items: left;">
95
+ <img src="https://sdgs.bappenas.go.id/repository/assets/bappenas_logo_square.png" style="width: 40%; max-width: 200px; height: auto; opacity: 0.55; ">
96
+ <h2 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">AI-Interlinked System/Bappenas GPT</h2>
97
+ </div>
98
+ '''
99
+
100
+ LICENSE = """
101
+ <p/>
102
+ ---
103
+ Dibangun dari Meta Llama 3
104
+ """
105
+
106
+ PLACEHOLDER = """
107
+ <div style="padding: 100px; text-align: center; display: flex; flex-direction: column; align-items: center;">
108
+ <img src="https://cdn3.iconfinder.com/data/icons/human-resources-flat-3/48/150-4096.png" style="width: 1000; max-width: 200px; height: auto; opacity: 0.55; ">
109
+ <h2 style="font-size: 20px; margin-bottom: 2px; opacity: 0.55;">Asisten Virtual Perencana</h2>
110
+ <p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Silakan mulai tanya...</p>
111
+ </div>
112
+ """
113
+
114
+
115
+ css = """
116
+ h1 {
117
+ text-align: center;
118
+ display: block;
119
+ }
120
+ #duplicate-button {
121
+ margin: auto;
122
+ color: white;
123
+ background: #1565c0;
124
+ border-radius: 100vh;
125
+ }
126
+ """
127
+ chatbot=gr.Chatbot(height=450, placeholder=PLACEHOLDER, label='Interlinked Sytem ChatInterface')
128
+
129
 
130
  chat_interface = gr.ChatInterface(
131
  fn=generate,
 
176
  ],
177
  )
178
 
 
 
 
 
 
 
 
 
 
 
 
 
179
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
 
181
  with gr.Blocks(css=css, fill_height=True) as demo:
182
  gr.Markdown(DESCRIPTION)