not-lain commited on
Commit
9a59f65
1 Parent(s): cc8d662

add openai

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. registries/openai-gradio.md +15 -0
  3. requirements.txt +2 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def get_interface(md):
13
 
14
 
15
  # need to match the filenames in the regesteries folder
16
- possible_registries = ["gemini-gradio"]
17
 
18
  with gr.Blocks() as demo :
19
  gr.Markdown("<h1 style='text-align: center;'>Gradio registry</h1>")
 
13
 
14
 
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>")
registries/openai-gradio.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## openai-gradio
2
+
3
+ ```
4
+ pip install openai-gradio
5
+ ```
6
+
7
+ ```python
8
+ import gradio as gr
9
+ import openai_gradio
10
+
11
+ gr.load(
12
+ name='gpt-4-turbo',
13
+ src=openai_gradio.registry,
14
+ ).launch()
15
+ ```
requirements.txt CHANGED
@@ -1 +1,2 @@
1
- gemini-gradio
 
 
1
+ gemini-gradio
2
+ openai-gradio