pennyhsy commited on
Commit
977ebf0
·
verified ·
1 Parent(s): 9630598

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -110,6 +110,19 @@ def query_model(question):
110
  welcome_message = """
111
  # 🌳 Welcome to GreenUnity!
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  ## Your AI-driven assistant for all environment hazard-related queries. Created by Penny, Isabel, and Nevaeh of the 2024 Kode With Klossy Los Angeles Camp.
114
  """
115
 
 
110
  welcome_message = """
111
  # 🌳 Welcome to GreenUnity!
112
 
113
+ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
114
+ gr.Image("Green-3.png", show_label = False, show_share_button = False, show_download_button = False) # <-- insert here!!
115
+ gr.Markdown(welcome_message) # Display the formatted welcome message
116
+ with gr.Row():
117
+ with gr.Column():
118
+ gr.Markdown(topics) # Show the topics on the left side
119
+ with gr.Row():
120
+ with gr.Column():
121
+ question = gr.Textbox(label="Your question", placeholder="Type your question here...")
122
+ answer = gr.Textbox(label="GreenUnity Response", placeholder="GreenUnity will respond here...", interactive=False, lines=10)
123
+ submit_button = gr.Button("Submit")
124
+ submit_button.click(fn=query_model, inputs=question, outputs=answer)
125
+
126
  ## Your AI-driven assistant for all environment hazard-related queries. Created by Penny, Isabel, and Nevaeh of the 2024 Kode With Klossy Los Angeles Camp.
127
  """
128