not-lain commited on
Commit
6c339ed
β€’
1 Parent(s): 9a59f65

update app

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +3 -1
  3. requirements.txt +2 -1
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Gradio Registery
3
  emoji: πŸŒ–
4
  colorFrom: gray
5
  colorTo: pink
 
1
  ---
2
+ title: Gradio Registry Explorer
3
  emoji: πŸŒ–
4
  colorFrom: gray
5
  colorTo: pink
app.py CHANGED
@@ -1,5 +1,7 @@
1
  import gradio as gr
2
  import os
 
 
3
 
4
  def get_markdown(registry):
5
  with open(registry,"r") as f:
@@ -15,7 +17,7 @@ def get_interface(md):
15
  # need to match the filenames in the regesteries folder
16
  possible_registries = ["gemini-gradio","openai-gradio"]
17
 
18
- with gr.Blocks() as demo :
19
  gr.Markdown("<h1 style='text-align: center;'>Gradio registry</h1>")
20
  dropdown = gr.Dropdown(possible_registries,value=possible_registries[0],interactive=True)
21
 
 
1
  import gradio as gr
2
  import os
3
+ from dotenv import load_dotenv
4
+ load_dotenv()
5
 
6
  def get_markdown(registry):
7
  with open(registry,"r") as f:
 
17
  # need to match the filenames in the regesteries folder
18
  possible_registries = ["gemini-gradio","openai-gradio"]
19
 
20
+ with gr.Blocks(fill_height=False, fill_width=False) as demo :
21
  gr.Markdown("<h1 style='text-align: center;'>Gradio registry</h1>")
22
  dropdown = gr.Dropdown(possible_registries,value=possible_registries[0],interactive=True)
23
 
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
  gemini-gradio
2
- openai-gradio
 
 
1
  gemini-gradio
2
+ openai-gradio
3
+ python-dotenv