kavansaun commited on
Commit
62fd006
·
verified ·
1 Parent(s): 4d845ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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", # cheaper + faster for HF Spaces
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