Nina
commited on
Commit
β’
0fe1b3a
1
Parent(s):
5d61bad
deleting background & adding 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 |
-
css_code = ".gradio-container {background-image: url('file=background.png')}"
|
82 |
|
83 |
-
with gr.Blocks(title="π ClimateGPT Ekimetrics"
|
84 |
|
85 |
openai.api_key = os.environ["api_key"]
|
86 |
# gr.Markdown("# Climate GPT")
|
@@ -101,7 +101,7 @@ with gr.Blocks(title="π ClimateGPT Ekimetrics", css=css_code) as demo:
|
|
101 |
# gr.Markdown("""### Ask me anything, I'm a climate expert""")
|
102 |
with gr.Row():
|
103 |
with gr.Column(scale=2):
|
104 |
-
chatbot = gr.Chatbot(
|
105 |
state = gr.State([system_template])
|
106 |
|
107 |
with gr.Row():
|
@@ -133,4 +133,6 @@ with gr.Blocks(title="π ClimateGPT Ekimetrics", css=css_code) as demo:
|
|
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 |
demo.launch()
|
|
|
78 |
|
79 |
|
80 |
# Gradio
|
81 |
+
# css_code = ".gradio-container {background-image: url('file=background.png')}"
|
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")
|
|
|
101 |
# gr.Markdown("""### Ask me anything, I'm a climate expert""")
|
102 |
with gr.Row():
|
103 |
with gr.Column(scale=2):
|
104 |
+
chatbot = gr.Chatbot()
|
105 |
state = gr.State([system_template])
|
106 |
|
107 |
with gr.Row():
|
|
|
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()
|