Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 80 |
-
outputs=gr.
|
| 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 |
)
|