darshil3011 commited on
Commit
64374d2
·
1 Parent(s): 9267364

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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["output1"], result["output2"], result["output3"]
9
-
10
  # Interface for the Gradio app
11
  iface = gr.Interface(
12
  fn=call_gradio_api,
13
  inputs="text",
14
- outputs=["json","json","json"],
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"