Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ g = Github(github_key)
|
|
| 24 |
user_dictionary = {}
|
| 25 |
|
| 26 |
# Gradio user interface
|
| 27 |
-
with gr.Blocks(theme=gr.themes.Monochrome(), css="footer{display:none !important}") as chatblock:
|
| 28 |
|
| 29 |
# Hidden session variables
|
| 30 |
user_id = gr.Textbox(visible=False)
|
|
@@ -86,7 +86,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css="footer{display:none !important
|
|
| 86 |
# Try tp get the response from OpenAI
|
| 87 |
try:
|
| 88 |
response = client.chat.completions.create(
|
| 89 |
-
model="gpt-4o-mini",
|
| 90 |
messages=user_dictionary[user_id]
|
| 91 |
)
|
| 92 |
|
|
|
|
| 24 |
user_dictionary = {}
|
| 25 |
|
| 26 |
# Gradio user interface
|
| 27 |
+
with gr.Blocks(theme=gr.themes.Monochrome(), css="""footer {display:none !important;}.status {display:none !important;}.progress-text {display:none !important;}.progress-bar {display:none !important;}""") as chatblock:
|
| 28 |
|
| 29 |
# Hidden session variables
|
| 30 |
user_id = gr.Textbox(visible=False)
|
|
|
|
| 86 |
# Try tp get the response from OpenAI
|
| 87 |
try:
|
| 88 |
response = client.chat.completions.create(
|
| 89 |
+
model="gpt-4o-mini", # Model Type
|
| 90 |
messages=user_dictionary[user_id]
|
| 91 |
)
|
| 92 |
|