Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
d57b019
1
Parent(s):
b6517de
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import time
|
2 |
import logging
|
3 |
import gradio as gr
|
|
|
4 |
from src.llm_boilers import llm_boiler
|
5 |
|
6 |
|
@@ -108,20 +109,13 @@ def call_inf_server(prompt, openai_key):
|
|
108 |
response = model.run(prompt, temperature=1.0)
|
109 |
logging.warning(f"Result of text generation: {response}")
|
110 |
return response
|
111 |
-
|
112 |
-
|
113 |
|
114 |
|
115 |
with gr.Blocks(
|
116 |
-
theme=gr.themes.
|
117 |
-
|
118 |
-
secondary_hue="emerald",
|
119 |
-
neutral_hue="zinc",
|
120 |
-
|
121 |
-
),
|
122 |
-
|
123 |
) 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 |
"""
|
|
|
1 |
import time
|
2 |
import logging
|
3 |
import gradio as gr
|
4 |
+
|
5 |
from src.llm_boilers import llm_boiler
|
6 |
|
7 |
|
|
|
109 |
response = model.run(prompt, temperature=1.0)
|
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 |
"""
|