Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
|
| 2 |
import os
|
| 3 |
-
|
| 4 |
os.system('pip install git+https://github.com/IDEA-Research/GroundingDINO.git')
|
| 5 |
os.system('pip install git+https://github.com/facebookresearch/segment-anything.git')
|
| 6 |
|
|
@@ -139,13 +138,13 @@ with gr.Blocks(css="#chatbot {overflow:auto; height:500px;}") as demo:
|
|
| 139 |
with gr.Row():
|
| 140 |
lang = gr.Radio(choices=['Chinese', 'English'], value='English', label='Language')
|
| 141 |
openai_api_key_textbox = gr.Textbox(
|
| 142 |
-
placeholder="Paste your key here to start",
|
| 143 |
show_label=False,
|
| 144 |
lines=1,
|
| 145 |
type="password",
|
| 146 |
)
|
| 147 |
|
| 148 |
-
chatbot = gr.Chatbot(elem_id="chatbot", label="
|
| 149 |
state = gr.State([])
|
| 150 |
|
| 151 |
with gr.Row(visible=False) as input_raws:
|
|
|
|
| 1 |
|
| 2 |
import os
|
|
|
|
| 3 |
os.system('pip install git+https://github.com/IDEA-Research/GroundingDINO.git')
|
| 4 |
os.system('pip install git+https://github.com/facebookresearch/segment-anything.git')
|
| 5 |
|
|
|
|
| 138 |
with gr.Row():
|
| 139 |
lang = gr.Radio(choices=['Chinese', 'English'], value='English', label='Language')
|
| 140 |
openai_api_key_textbox = gr.Textbox(
|
| 141 |
+
placeholder="Paste your OpenAI API key here to start Visual ChatGPT(sk-...) and press Enter ↵️",
|
| 142 |
show_label=False,
|
| 143 |
lines=1,
|
| 144 |
type="password",
|
| 145 |
)
|
| 146 |
|
| 147 |
+
chatbot = gr.Chatbot(elem_id="chatbot", label="Visual ChatGPT")
|
| 148 |
state = gr.State([])
|
| 149 |
|
| 150 |
with gr.Row(visible=False) as input_raws:
|