Shamima commited on
Commit
6e241be
1 Parent(s): 76f438b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,7 +14,7 @@ warnings.filterwarnings('ignore')
14
  pd.set_option('display.max_colwidth', None)
15
 
16
  data_df = pd.read_csv('functions_data.csv')
17
- #data_df.head()
18
 
19
  data_df['docstring'].fillna('not specified', inplace=True)
20
 
@@ -44,8 +44,8 @@ examples = ['compute diffusion of given data']
44
  inputs = gr.Textbox(label='query')
45
  outputs = [gr.Textbox(label='matched function'), gr.Textbox(label='File path')]
46
  title = "Search Code"
47
- description = "Semantically search codebase using Cohere embed API. This demo uses Open AI point cloud codebase as an example"
48
- iface = gr.Interface(fn=get_code, inputs=inputs, outputs=outputs, description = description, examples=examples)
49
  iface.launch()
50
 
51
 
 
14
  pd.set_option('display.max_colwidth', None)
15
 
16
  data_df = pd.read_csv('functions_data.csv')
17
+
18
 
19
  data_df['docstring'].fillna('not specified', inplace=True)
20
 
 
44
  inputs = gr.Textbox(label='query')
45
  outputs = [gr.Textbox(label='matched function'), gr.Textbox(label='File path')]
46
  title = "Search Code"
47
+ description = "Semantically search codebase using Cohere embed API. This demo uses Open AI point cloud codebase https://github.com/openai/point-e as an example"
48
+ iface = gr.Interface(fn=get_code, inputs=inputs, outputs=outputs, description = description, examples=examples, title=title)
49
  iface.launch()
50
 
51