Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
35c4895
1
Parent(s):
9f9ee9f
Update app.py
Browse files
app.py
CHANGED
@@ -108,13 +108,18 @@ def call_inf_server(prompt, openai_key):
|
|
108 |
logging.warning(f"Result of text generation: {response}")
|
109 |
return response
|
110 |
|
111 |
-
|
112 |
-
|
|
|
|
|
113 |
primary_hue="amber",
|
114 |
secondary_hue="neutral",
|
115 |
neutral_hue="rose",
|
116 |
-
|
117 |
-
|
|
|
|
|
|
|
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.
|
|
|
108 |
logging.warning(f"Result of text generation: {response}")
|
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.
|