Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
af9e3ba
1
Parent(s):
85a4c44
Update app.py
Browse files
app.py
CHANGED
@@ -108,13 +108,27 @@ 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 |
with gr.Blocks(
|
114 |
theme=gr.themes.Glass(
|
115 |
primary_hue="lime",
|
116 |
secondary_hue="emerald",
|
117 |
neutral_hue="zinc",
|
|
|
|
|
|
|
118 |
),
|
119 |
|
120 |
) as demo:
|
|
|
108 |
response = model.run(prompt, temperature=1.0)
|
109 |
logging.warning(f"Result of text generation: {response}")
|
110 |
return response
|
111 |
+
|
112 |
+
import gradio as gr
|
113 |
|
114 |
+
theme = gr.themes.Glass(
|
115 |
+
primary_hue="lime",
|
116 |
+
secondary_hue="emerald",
|
117 |
+
neutral_hue="zinc",
|
118 |
+
text_size="text_lg",
|
119 |
+
font=[gr.themes.GoogleFont('Optima'), 'Candara', 'Noto Sans', 'source-sans-pro'],
|
120 |
+
)
|
121 |
|
122 |
+
with gr.Blocks(theme=theme) as demo:
|
123 |
+
...
|
124 |
with gr.Blocks(
|
125 |
theme=gr.themes.Glass(
|
126 |
primary_hue="lime",
|
127 |
secondary_hue="emerald",
|
128 |
neutral_hue="zinc",
|
129 |
+
text_size="text_lg",
|
130 |
+
font=[gr.themes.GoogleFont('Optima'), 'Candara', 'Noto Sans', 'source-sans-pro'],
|
131 |
+
|
132 |
),
|
133 |
|
134 |
) as demo:
|