Jimenagh commited on
Commit
ec7cc31
1 Parent(s): b453537

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -11
app.py CHANGED
@@ -7,21 +7,13 @@ Original file is located at
7
  https://colab.research.google.com/drive/1CWlm7_FskC5LwZaYL-sgzASC5LDAzZ15
8
  """
9
 
10
-
11
- import gradio as gr
12
-
13
  import transformers
14
  from transformers import pipeline
15
  import pandas as pd
 
16
 
17
- from transformers import AutoModelForQuestionAnswering, AutoTokenizer
18
-
19
- model_name = "mrm8488/distill-bert-base-spanish-wwm-cased-finetuned-spa-squad2-es"
20
-
21
- tokenizer = AutoTokenizer.from_pretrained(model_name)
22
- model = AutoModelForQuestionAnswering.from_pretrained(model_name)
23
-
24
- df = pd.read_csv('https://docs.google.com/spreadsheets/d/e/2PACX-1vSWJvS1tP7pp_GpF1fb-KXDyQoACbxKZlUfB4Gd3SFHnX6Jz3xs9-9t0yMOnfPd59Up50Fp8OS02epO/pub?gid=1955047855&single=true&output=csv')
25
 
26
  df['contexto'] = df['Descripción'] + '' + df['Atributos'] + ''
27
 
 
7
  https://colab.research.google.com/drive/1CWlm7_FskC5LwZaYL-sgzASC5LDAzZ15
8
  """
9
 
 
 
 
10
  import transformers
11
  from transformers import pipeline
12
  import pandas as pd
13
+ import gradio as gr
14
 
15
+ url = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vSWJvS1tP7pp_GpF1fb-KXDyQoACbxKZlUfB4Gd3SFHnX6Jz3xs9-9t0yMOnfPd59Up50Fp8OS02epO/pub?gid=1955047855&single=true&output=csv'
16
+ df = pd.read_csv(url)
 
 
 
 
 
 
17
 
18
  df['contexto'] = df['Descripción'] + '' + df['Atributos'] + ''
19