Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
6a2a066
1
Parent(s):
abf7098
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,15 @@
|
|
1 |
import time
|
2 |
import logging
|
3 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
from src.llm_boilers import llm_boiler
|
6 |
|
@@ -110,15 +119,6 @@ def call_inf_server(prompt, openai_key):
|
|
110 |
logging.warning(f"Result of text generation: {response}")
|
111 |
return response
|
112 |
|
113 |
-
# ------ STYLES ---
|
114 |
-
# see https://huggingface.co/spaces/Gradio-Themes/theme_builder for more to tweek
|
115 |
-
#//////////////////////////////////////////////////////////////////// Glass(),
|
116 |
-
|
117 |
-
with gr.Blocks(theme = gr.themes.Glass(
|
118 |
-
primary_hue="amber",
|
119 |
-
secondary_hue="orange",
|
120 |
-
neutral_hue="amber",
|
121 |
-
) ):
|
122 |
|
123 |
with gr.Blocks(theme=theme) as demo:
|
124 |
gr.Markdown(
|
|
|
1 |
import time
|
2 |
import logging
|
3 |
import gradio as gr
|
4 |
+
import gradio as gr
|
5 |
+
|
6 |
+
theme = gr.themes.Glass(
|
7 |
+
primary_hue="amber",
|
8 |
+
secondary_hue="orange",
|
9 |
+
neutral_hue="amber",
|
10 |
+
)
|
11 |
+
|
12 |
+
with gr.Blocks(theme=theme) as demo:
|
13 |
|
14 |
from src.llm_boilers import llm_boiler
|
15 |
|
|
|
119 |
logging.warning(f"Result of text generation: {response}")
|
120 |
return response
|
121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
|
123 |
with gr.Blocks(theme=theme) as demo:
|
124 |
gr.Markdown(
|