Dagfinn1962 commited on
Commit
f904c4e
1 Parent(s): 44d4bdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -15
app.py CHANGED
@@ -112,21 +112,14 @@ def call_inf_server(prompt, openai_key):
112
 
113
 
114
  with gr.Blocks(
115
- theme = gr.themes.Glass(),
116
- primary_hue="yellow",
117
- secondary_hue=gr.themes.Color(secondary_100="#736c1c", secondary_200="#716823", secondary_300="#fde047", secondary_400="#facc15", secondary_50="#f2e821", secondary_500="#eab308", secondary_600="#ca8a04", secondary_700="#a16207", secondary_800="#854d0e", secondary_900="#713f12", secondary_950="#653b12"),
118
- neutral_hue=gr.themes.Color(neutral_100="#2a1304", neutral_200="#e7e5e4", neutral_300="#d6d3d1", neutral_400="#a8a29e", neutral_50="#97ae29", neutral_500="#78716c", neutral_600="#57534e", neutral_700="#44403c", neutral_800="#292524", neutral_900="#1c1917", neutral_950="#0f0e0d"),
119
- text_size="text_lg",
120
- spacing_size="spacing_md",
121
- radius_size=gr.themes.Size(radius_lg="8px", radius_md="6px", radius_sm="4px", radius_xl="12px", radius_xs="2px", radius_xxl="22px", radius_xxs="5px"),
122
- font=[gr.themes.GoogleFont('Optima'), gr.themes.GoogleFont('Candara'), gr.themes.GoogleFont('Noto Sans'), gr.themes.GoogleFont('source-sans-pro')],
123
- font_mono=[gr.themes.GoogleFont('IBM Plex Mono'), gr.themes.GoogleFont('ui-monospace'), gr.themes.GoogleFont('Consolas'), gr.themes.GoogleFont('monospace')],
124
- ).set(
125
- body_background_fill='*primary_500',
126
- body_background_fill_dark='*primary_50',
127
- background_fill_primary='*primary_50',
128
- background_fill_primary_dark='*primary_50'
129
- ):
130
  with gr.Blocks():
131
  conversation = Chat()
132
  with gr.Row():
 
112
 
113
 
114
  with gr.Blocks(
115
+ theme=gr.themes.Soft(),
116
+ css=".disclaimer {font-variant-caps: all-small-caps;}",
117
+ ) as demo:
118
+ gr.Markdown(
119
+ """<h1><center>Chat with gpt-3.5-turbo</center></h1>
120
+ This is a lightweight demo of gpt-3.5-turbo conversation completion. It was designed as a template for in-context learning applications to be built on top of.
121
+ """
122
+ )
 
 
 
 
 
 
 
123
  with gr.Blocks():
124
  conversation = Chat()
125
  with gr.Row():