Nexchan commited on
Commit
5ea96d9
·
verified ·
1 Parent(s): 1e4892f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,8 +76,8 @@ def api_endpoint(chat_history: List[Dict[str, str]]):
76
  # Membuat interface API
77
  api_interface = gr.Interface(
78
  fn=api_endpoint,
79
- inputs=gr.inputs.JSON(),
80
- outputs=gr.outputs.JSON(),
81
  title="Chat API",
82
  description="Endpoint API untuk berinteraksi dengan model chat."
83
  )
 
76
  # Membuat interface API
77
  api_interface = gr.Interface(
78
  fn=api_endpoint,
79
+ inputs=gr.JSON(),
80
+ outputs=gr.JSON(),
81
  title="Chat API",
82
  description="Endpoint API untuk berinteraksi dengan model chat."
83
  )