abenkbp commited on
Commit
cb14670
·
1 Parent(s): aa7f511
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def decode_base64_to_json(base64_str):
35
  except Exception as e:
36
  raise ValueError(f"Error decoding base64 to JSON: {str(e)}")
37
 
38
- @spaces.GPU(enable_queue=True)
39
  def chat_completion(user_input, max_tokens, temperature, top_p):
40
  try:
41
  input_data = decode_base64_to_json(user_input)
@@ -70,4 +70,4 @@ iface = gr.Interface(
70
  description="Provide Base64-encoded JSON input with a list of messages and set the max tokens, temperature, and top_p to generate a chat completion."
71
  )
72
 
73
- iface.launch(share=False, server_name="0.0.0.0", server_port=7000)
 
35
  except Exception as e:
36
  raise ValueError(f"Error decoding base64 to JSON: {str(e)}")
37
 
38
+ @spaces.GPU()
39
  def chat_completion(user_input, max_tokens, temperature, top_p):
40
  try:
41
  input_data = decode_base64_to_json(user_input)
 
70
  description="Provide Base64-encoded JSON input with a list of messages and set the max tokens, temperature, and top_p to generate a chat completion."
71
  )
72
 
73
+ iface.launch(share=False, server_name="ucode-agent.hf.space", server_port=7000)