gisam commited on
Commit
dfba029
·
1 Parent(s): 2f94ec2

home page updated

Browse files
pages/00_home.py CHANGED
@@ -1,15 +1,20 @@
1
  import solara
2
 
3
-
4
  @solara.component
5
  def Page():
6
- with solara.Column(align="center"):
 
7
  markdown = """
8
 
9
  ### Introduction
10
 
11
- **A collection of [Solara](https://github.com/widgetti/solara) web apps for geospatial applications.**
12
 
 
 
13
  """
14
-
15
  solara.Markdown(markdown)
 
 
 
 
 
1
  import solara
2
 
 
3
  @solara.component
4
  def Page():
5
+ with solara.Column(align="center"):
6
+ # Markdown content for the homepage
7
  markdown = """
8
 
9
  ### Introduction
10
 
11
+ **A collection of geospatial web applications built with Solara.**
12
 
13
+ Thanks [giswqs](https://huggingface.co/spaces/giswqs/solara-template) for creating the [Solara Template](https://huggingface.co/spaces/giswqs/solara-template) that was used to build this space.
14
+
15
  """
 
16
  solara.Markdown(markdown)
17
+ with solara.Column(align="center"):
18
+ # Create a link to the OpenAI page
19
+ with solara.Link("/openai-travel-assistant"):
20
+ solara.Button("OpenAI Travel assistant demo")
pages/{01_openAI.py → 01_travel-assistant.py} RENAMED
@@ -7,10 +7,10 @@ import solara.lab
7
  from solara.website.utils import apidoc
8
  from ipyleaflet import Marker, Icon
9
  import openai
10
- #from dotenv import load_dotenv
11
 
12
  # Load environment variables
13
- #load_dotenv()
14
 
15
  # Initialize OpenAI client
16
  client = openai.OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
 
7
  from solara.website.utils import apidoc
8
  from ipyleaflet import Marker, Icon
9
  import openai
10
+ from dotenv import load_dotenv
11
 
12
  # Load environment variables
13
+ load_dotenv()
14
 
15
  # Initialize OpenAI client
16
  client = openai.OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))