Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
d149d9a
1
Parent(s):
5ee0d22
Update app.py
Browse files
app.py
CHANGED
@@ -2,14 +2,13 @@ import time
|
|
2 |
import logging
|
3 |
import gradio as gr
|
4 |
from typing import Iterable
|
5 |
-
import gradio as gr
|
6 |
-
from gradio.themes.utils import colors, fonts, sizes
|
7 |
-
from src.llm_boilers import llm_boiler
|
8 |
-
|
9 |
theme = gr.themes.Glass(
|
10 |
primary_hue="orange",
|
11 |
secondary_hue="neutral",
|
12 |
-
|
|
|
|
|
|
|
13 |
|
14 |
|
15 |
logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
|
@@ -118,7 +117,7 @@ def call_inf_server(prompt, openai_key):
|
|
118 |
return response
|
119 |
|
120 |
|
121 |
-
with gr.Blocks(theme=theme):
|
122 |
css=".disclaimer {font-variant-caps: all-small-caps;}"
|
123 |
|
124 |
gr.Markdown(
|
|
|
2 |
import logging
|
3 |
import gradio as gr
|
4 |
from typing import Iterable
|
|
|
|
|
|
|
|
|
5 |
theme = gr.themes.Glass(
|
6 |
primary_hue="orange",
|
7 |
secondary_hue="neutral",
|
8 |
+
neutral_hue=gr.themes.Color(neutral_100="#ffedd5", neutral_200="#32271a", neutral_300="#fdba74", neutral_400="#fb923c", neutral_50="#fff7ed", neutral_500="#f97316", neutral_600="#ea580c", neutral_700="#c2410c", neutral_800="#9a3412", neutral_900="#7c2d12", neutral_950="#6c2e12"),
|
9 |
+
)
|
10 |
+
|
11 |
+
with gr.Blocks(theme=theme) as demo:
|
12 |
|
13 |
|
14 |
logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
|
|
|
117 |
return response
|
118 |
|
119 |
|
120 |
+
with gr.Blocks(theme=theme)as demo:
|
121 |
css=".disclaimer {font-variant-caps: all-small-caps;}"
|
122 |
|
123 |
gr.Markdown(
|