Dagfinn1962 commited on
Commit
b542801
1 Parent(s): 35c4895

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +4 -11
app2.py CHANGED
@@ -110,22 +110,15 @@ def call_inf_server(prompt, openai_key):
110
  logging.warning(f"Result of text generation: {response}")
111
  return response
112
 
113
- # style HERE ----->
114
 
115
-
116
  with gr.Blocks(
117
- theme = gr.themes.Glass(
118
- primary_hue="amber",
119
- secondary_hue="neutral",
120
- neutral_hue="rose",
121
- )
122
- # ----- To here ---<
123
-
124
  gr.Markdown(
125
  """<h1><center>Chat with gpt-3.5-turbo</center></h1>
126
  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.
127
  """
128
- )
129
  )
130
  conversation = Chat()
131
  with gr.Row():
@@ -227,4 +220,4 @@ with gr.Blocks(
227
  )
228
 
229
 
230
- (max_size=36, concurrency_count=14).launch(debug=True)
 
110
  logging.warning(f"Result of text generation: {response}")
111
  return response
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
  conversation = Chat()
124
  with gr.Row():
 
220
  )
221
 
222
 
223
+ demo.queue(max_size=36, concurrency_count=14).launch(debug=True)