Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import requests
|
|
6 |
import random
|
7 |
|
8 |
|
9 |
-
MODEL = "gpt-
|
10 |
API_URL = os.getenv("API_URL")
|
11 |
DISABLED = os.getenv("DISABLED") == 'True'
|
12 |
OPENAI_API_KEYS = os.getenv("OPENAI_API_KEYS").split(',')
|
@@ -115,7 +115,7 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
|
|
115 |
def reset_textbox():
|
116 |
return gr.update(value='', interactive=False), gr.update(interactive=False)
|
117 |
|
118 |
-
title = """<h1 align="center">GPT-
|
119 |
if DISABLED:
|
120 |
title = """<h1 align="center" style="color:red">This app has reached OpenAI's usage limit. Please check back tomorrow.</h1>"""
|
121 |
description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
|
@@ -126,7 +126,7 @@ User: <utterance>
|
|
126 |
Assistant: <utterance>
|
127 |
...
|
128 |
```
|
129 |
-
In this app, you can explore the outputs of a gpt-
|
130 |
"""
|
131 |
|
132 |
theme = gr.themes.Default(primary_hue="green")
|
@@ -135,7 +135,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
135 |
#chatbot {height: 520px; overflow: auto;}""",
|
136 |
theme=theme) as demo:
|
137 |
gr.HTML(title)
|
138 |
-
gr.HTML("""<h3 align="center">This app provides you full access to GPT-
|
139 |
gr.HTML("""
|
140 |
<div style="padding: 12px; margin-bottom: 16px; border-radius: 6px; background-color: #e6f4ea; text-align: center;">
|
141 |
🚀 <b>Try our new ChatAnnotator</b> powered by Cohere's <b>Command-A</b> model!
|
|
|
6 |
import random
|
7 |
|
8 |
|
9 |
+
MODEL = "gpt-5-mini"
|
10 |
API_URL = os.getenv("API_URL")
|
11 |
DISABLED = os.getenv("DISABLED") == 'True'
|
12 |
OPENAI_API_KEYS = os.getenv("OPENAI_API_KEYS").split(',')
|
|
|
115 |
def reset_textbox():
|
116 |
return gr.update(value='', interactive=False), gr.update(interactive=False)
|
117 |
|
118 |
+
title = """<h1 align="center">GPT-5 mini: Research Preview (Short-Term Availability)</h1>"""
|
119 |
if DISABLED:
|
120 |
title = """<h1 align="center" style="color:red">This app has reached OpenAI's usage limit. Please check back tomorrow.</h1>"""
|
121 |
description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
|
|
|
126 |
Assistant: <utterance>
|
127 |
...
|
128 |
```
|
129 |
+
In this app, you can explore the outputs of a gpt-5-mini LLM.
|
130 |
"""
|
131 |
|
132 |
theme = gr.themes.Default(primary_hue="green")
|
|
|
135 |
#chatbot {height: 520px; overflow: auto;}""",
|
136 |
theme=theme) as demo:
|
137 |
gr.HTML(title)
|
138 |
+
gr.HTML("""<h3 align="center">This app provides you full access to GPT-5 mini (400K token limit). You don't need any OPENAI API key.</h3>""")
|
139 |
gr.HTML("""
|
140 |
<div style="padding: 12px; margin-bottom: 16px; border-radius: 6px; background-color: #e6f4ea; text-align: center;">
|
141 |
🚀 <b>Try our new ChatAnnotator</b> powered by Cohere's <b>Command-A</b> model!
|