Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ def get_code(query):
|
|
| 49 |
return data_df.iloc[similar_item_ids[0]]['function_body'], data_df.iloc[similar_item_ids[0]]['file_path']
|
| 50 |
examples = ['compute diffusion of given data']
|
| 51 |
inputs = gr.Textbox(label='query')
|
| 52 |
-
outputs = [gr.Textbox(label='matched function'), gr.Textbox(label='File path')
|
| 53 |
title = "Search Code"
|
| 54 |
description = "Semantically search codebase using Cohere embed API. This demo uses Open AI point cloud codebase as an example"
|
| 55 |
iface = gr.Interface(fn=get_code, inputs=inputs, outputs=outputs, description = description)
|
|
|
|
| 49 |
return data_df.iloc[similar_item_ids[0]]['function_body'], data_df.iloc[similar_item_ids[0]]['file_path']
|
| 50 |
examples = ['compute diffusion of given data']
|
| 51 |
inputs = gr.Textbox(label='query')
|
| 52 |
+
outputs = [gr.Textbox(label='matched function'), gr.Textbox(label='File path')]
|
| 53 |
title = "Search Code"
|
| 54 |
description = "Semantically search codebase using Cohere embed API. This demo uses Open AI point cloud codebase as an example"
|
| 55 |
iface = gr.Interface(fn=get_code, inputs=inputs, outputs=outputs, description = description)
|