markrodrigo commited on
Commit
bdf93a9
·
1 Parent(s): de4beca
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -27,6 +27,15 @@ PRESET_EXAMPLES = [
27
  "How far apart is the point and line? : 'Point(-109.87549823 38.60574249)' 'LineString(-109.24324628 38.76349931, -109.4821773 38.6875815)'"
28
  ]
29
 
 
 
 
 
 
 
 
 
 
30
 
31
  @spaces.GPU
32
  def respond(user_message, chat_history):
@@ -57,7 +66,7 @@ def respond(user_message, chat_history):
57
 
58
 
59
 
60
- with gr.Blocks(title="Text to PostGIS Postgresql via Llama 3.2", theme=gr.themes.Ocean()) as demo:
61
  gr.Markdown("# Natural Language to Spatial SQL.\n### Convert natural language and spatial primitives to PostGIS with Llama 3.2")
62
  chatbot = gr.Chatbot(
63
  label="Chat",
 
27
  "How far apart is the point and line? : 'Point(-109.87549823 38.60574249)' 'LineString(-109.24324628 38.76349931, -109.4821773 38.6875815)'"
28
  ]
29
 
30
+ # Overrides the gradient with a solid color
31
+ css_BTN_code = """
32
+ .gradio-container button {
33
+ background-image: none !important;
34
+ background-color: #029be9 !important; /* Your solid color here */
35
+ border: none;
36
+ }
37
+ """
38
+
39
 
40
  @spaces.GPU
41
  def respond(user_message, chat_history):
 
66
 
67
 
68
 
69
+ with gr.Blocks(title="Text to PostGIS Postgresql via Llama 3.2", theme=gr.themes.Ocean(), css_code=css_BTN_code) as demo:
70
  gr.Markdown("# Natural Language to Spatial SQL.\n### Convert natural language and spatial primitives to PostGIS with Llama 3.2")
71
  chatbot = gr.Chatbot(
72
  label="Chat",