Nina
commited on
Commit
β’
f144281
1
Parent(s):
3f2d642
test new background with logo
Browse files
app.py
CHANGED
@@ -78,9 +78,9 @@ def gen_conv(query: str, history=[system_template], ipcc=True):
|
|
78 |
|
79 |
|
80 |
# Gradio
|
81 |
-
|
82 |
|
83 |
-
with gr.Blocks(title="π ClimateGPT Ekimetrics") as demo: # css=css_code
|
84 |
|
85 |
openai.api_key = os.environ["api_key"]
|
86 |
# gr.Markdown("# Climate GPT")
|
@@ -133,6 +133,6 @@ with gr.Blocks(title="π ClimateGPT Ekimetrics") as demo: # css=css_code
|
|
133 |
openai_api_key_textbox.change(set_openai_api_key, inputs=[openai_api_key_textbox])
|
134 |
openai_api_key_textbox.submit(set_openai_api_key, inputs=[openai_api_key_textbox])
|
135 |
|
136 |
-
img = gr.Image("Ekimetrics_Logo_Color.jpg")
|
137 |
|
138 |
demo.launch()
|
|
|
78 |
|
79 |
|
80 |
# Gradio
|
81 |
+
css_code = ".gradio-container {background-image: url('file=background2.png')}"
|
82 |
|
83 |
+
with gr.Blocks(title="π ClimateGPT Ekimetrics", css=css_code) as demo: # css=css_code
|
84 |
|
85 |
openai.api_key = os.environ["api_key"]
|
86 |
# gr.Markdown("# Climate GPT")
|
|
|
133 |
openai_api_key_textbox.change(set_openai_api_key, inputs=[openai_api_key_textbox])
|
134 |
openai_api_key_textbox.submit(set_openai_api_key, inputs=[openai_api_key_textbox])
|
135 |
|
136 |
+
# img = gr.Image("Ekimetrics_Logo_Color.jpg")
|
137 |
|
138 |
demo.launch()
|