Spaces:
Sleeping
Sleeping
09/08/2023
Browse files
app.py
CHANGED
|
@@ -28,8 +28,6 @@ gc = gspread.service_account_from_dict( credentials )
|
|
| 28 |
|
| 29 |
Google_URL = os.getenv( "Google_URL" )
|
| 30 |
|
| 31 |
-
sht = gc.open_by_url(Google_URL)
|
| 32 |
-
|
| 33 |
# Cargar el archivo
|
| 34 |
df_Normas_Embeddings = pd.read_csv( 'https://raw.githubusercontent.com/benjov/Data_Fiscal/main/Textos_Normas.csv' )
|
| 35 |
|
|
@@ -142,6 +140,8 @@ def get_respuesta( user_message, informacion ):
|
|
| 142 |
|
| 143 |
#
|
| 144 |
def update_records( user_message ):
|
|
|
|
|
|
|
| 145 |
#
|
| 146 |
sht.sheet1.get_all_records()
|
| 147 |
#
|
|
|
|
| 28 |
|
| 29 |
Google_URL = os.getenv( "Google_URL" )
|
| 30 |
|
|
|
|
|
|
|
| 31 |
# Cargar el archivo
|
| 32 |
df_Normas_Embeddings = pd.read_csv( 'https://raw.githubusercontent.com/benjov/Data_Fiscal/main/Textos_Normas.csv' )
|
| 33 |
|
|
|
|
| 140 |
|
| 141 |
#
|
| 142 |
def update_records( user_message ):
|
| 143 |
+
#
|
| 144 |
+
sht = gc.open_by_url(Google_URL)
|
| 145 |
#
|
| 146 |
sht.sheet1.get_all_records()
|
| 147 |
#
|