Dagfinn1962 commited on
Commit
60a1dd3
1 Parent(s): 7651b2f

Update app1.py

Browse files
Files changed (1) hide show
  1. app1.py +14 -12
app1.py CHANGED
@@ -1,7 +1,9 @@
1
  import time
2
  import logging
3
  import gradio as gr
4
- from typing import Iterable
 
 
5
 
6
  logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
7
  logging.warning("READY. App started...")
@@ -109,18 +111,18 @@ def call_inf_server(prompt, openai_key):
109
  return response
110
 
111
 
112
-
 
 
 
 
 
 
 
 
113
 
114
- theme = gr.themes.Glass(
115
- primary_hue="amber",
116
- secondary_hue="neutral",
117
- neutral_hue="rose",
118
- text_size="text_lg",
119
-
120
- )
121
- with gr.Blocks(theme=theme) as demo:
122
 
123
- gr.Markdown(
124
  """<h1><center>Chat with gpt-3.5-turbo</center></h1>
125
  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.
126
  """
@@ -225,4 +227,4 @@ with gr.Blocks(theme=theme) as demo:
225
  )
226
 
227
 
228
- demo.queue(max_size=36, concurrency_count=14).launch(debug=True)
 
1
  import time
2
  import logging
3
  import gradio as gr
4
+
5
+ from src.llm_boilers import llm_boiler
6
+
7
 
8
  logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
9
  logging.warning("READY. App started...")
 
111
  return response
112
 
113
 
114
+ with gr.Blocks(
115
+ theme=gr.themes.Glass(
116
+ primary_hue="lime",
117
+ secondary_hue="emerald",
118
+ neutral_hue="zinc",
119
+
120
+ ),
121
+
122
+ ) as demo:
123
 
 
 
 
 
 
 
 
 
124
 
125
+ gr.Markdown(
126
  """<h1><center>Chat with gpt-3.5-turbo</center></h1>
127
  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.
128
  """
 
227
  )
228
 
229
 
230
+ demo.queue(max_size=36, concurrency_count=14).launch(debug=True)