English
Recommendation
Jmilagres commited on
Commit
bd8c8f4
1 Parent(s): 16b786c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -0
README.md CHANGED
@@ -358,6 +358,7 @@ sys.stdout = sys.__stdout__ # Codigo para reativar os prints
358
  - Usage Example
359
 
360
  In this section it will be explained how the recommendation is made for the user
 
361
  ```python
362
 
363
  import gradio as gr
@@ -369,6 +370,8 @@ opo = pd.read_csv('oportunidades_results.csv', lineterminator='\n')
369
  simulation = pd.read_csv('simulation2.csv')
370
  userID = max(simulation['userID']) + 1
371
 
 
 
372
  def build_display_text(opo_n):
373
 
374
  title = opo.loc[opo_n]['opo_titulo']
@@ -378,7 +381,10 @@ def build_display_text(opo_n):
378
  display_text = f"**{title}**\n\nURL:\n{link}\n\nSUMMARY:\n{summary}"
379
 
380
  return display_text
 
381
 
 
 
382
  opo_n_one = random.randrange(len(opo))
383
  opo_n_two = random.randrange(len(opo))
384
  opo_n_three = random.randrange(len(opo))
 
358
  - Usage Example
359
 
360
  In this section it will be explained how the recommendation is made for the user
361
+
362
  ```python
363
 
364
  import gradio as gr
 
370
  simulation = pd.read_csv('simulation2.csv')
371
  userID = max(simulation['userID']) + 1
372
 
373
+ This function, creates the string that it will be displayed to the user on the app, showing the opportunities title, link and the resume.
374
+
375
  def build_display_text(opo_n):
376
 
377
  title = opo.loc[opo_n]['opo_titulo']
 
381
  display_text = f"**{title}**\n\nURL:\n{link}\n\nSUMMARY:\n{summary}"
382
 
383
  return display_text
384
+ ```
385
 
386
+ Here it will be generate 4 random opportunities
387
+ ```python
388
  opo_n_one = random.randrange(len(opo))
389
  opo_n_two = random.randrange(len(opo))
390
  opo_n_three = random.randrange(len(opo))