Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
028b828
1
Parent(s):
3e07bd8
Update app.py
Browse files
app.py
CHANGED
@@ -3,16 +3,6 @@ import logging
|
|
3 |
import gradio as gr
|
4 |
|
5 |
|
6 |
-
theme = gr.themes.Glass(
|
7 |
-
primary_hue="amber",
|
8 |
-
secondary_hue="orange",
|
9 |
-
neutral_hue="amber",
|
10 |
-
)
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
|
17 |
logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
|
18 |
logging.warning("READY. App started...")
|
@@ -120,8 +110,18 @@ def call_inf_server(prompt, openai_key):
|
|
120 |
return response
|
121 |
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
with gr.Blocks(theme=theme) as demo:
|
124 |
-
|
|
|
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 |
"""
|
@@ -224,6 +224,3 @@ with gr.Blocks(theme=theme) as demo:
|
|
224 |
outputs=[system],
|
225 |
queue=False,
|
226 |
)
|
227 |
-
|
228 |
-
|
229 |
-
demo.queue(max_size=36, concurrency_count=14).launch(debug=True)
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
|
8 |
logging.warning("READY. App started...")
|
|
|
110 |
return response
|
111 |
|
112 |
|
113 |
+
|
114 |
+
|
115 |
+
theme = gr.themes.Glass(
|
116 |
+
primary_hue="amber",
|
117 |
+
secondary_hue="neutral",
|
118 |
+
neutral_hue="rose",
|
119 |
+
text_size="text_lg",
|
120 |
+
|
121 |
+
)
|
122 |
with gr.Blocks(theme=theme) as demo:
|
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 |
"""
|
|
|
224 |
outputs=[system],
|
225 |
queue=False,
|
226 |
)
|
|
|
|
|
|