Spaces:
Runtime error
Runtime error
Commit
·
64374d2
1
Parent(s):
9267364
Update app.py
Browse files
app.py
CHANGED
@@ -5,13 +5,13 @@ from gradio_client import Client
|
|
5 |
def call_gradio_api(user_input):
|
6 |
client = Client("https://traversaal-internal-rag-faiss-gpt3-5.hf.space/")
|
7 |
result = client.predict(user_input, api_name="/predict")
|
8 |
-
return result
|
9 |
-
|
10 |
# Interface for the Gradio app
|
11 |
iface = gr.Interface(
|
12 |
fn=call_gradio_api,
|
13 |
inputs="text",
|
14 |
-
outputs=
|
15 |
layout="vertical",
|
16 |
title="CCL Playground",
|
17 |
description="Enter a query to get response using RAG"
|
|
|
5 |
def call_gradio_api(user_input):
|
6 |
client = Client("https://traversaal-internal-rag-faiss-gpt3-5.hf.space/")
|
7 |
result = client.predict(user_input, api_name="/predict")
|
8 |
+
return result
|
9 |
+
|
10 |
# Interface for the Gradio app
|
11 |
iface = gr.Interface(
|
12 |
fn=call_gradio_api,
|
13 |
inputs="text",
|
14 |
+
outputs="text",
|
15 |
layout="vertical",
|
16 |
title="CCL Playground",
|
17 |
description="Enter a query to get response using RAG"
|