Spaces:
Sleeping
Sleeping
Noch ein paar Fehler behoben
Browse files
app.py
CHANGED
@@ -30,8 +30,8 @@ def AskAI_easy(ques):
|
|
30 |
|
31 |
row = eval(blub)[0]['coordinates'][0][0] #get object
|
32 |
out_df = Tmain.iloc[row,:12]
|
33 |
-
out_df['geom'] = Tgeom.iloc[row,
|
34 |
-
|
35 |
#out_gdf = gpd.GeoDataFrame(out_df, geometry = 'geom') # funktioniert nicht --> Geometrie ist kaputt =(
|
36 |
#geojson_string = out_gdf.to_json(driver='GeoJSON')
|
37 |
|
@@ -49,7 +49,7 @@ def AskAI_easy(ques):
|
|
49 |
repo = g.get_repo("Giedeon25/GID-Project")
|
50 |
repo.create_file("data/Output/" + ques + ".json", "committing files", geojson_string, branch="main") # create File
|
51 |
|
52 |
-
return(blub + " ==== " + "dllink: https://github.com/Giedeon25/GID-Project/blob/main/data/Output/" +
|
53 |
|
54 |
|
55 |
#######################################################################################
|
|
|
30 |
|
31 |
row = eval(blub)[0]['coordinates'][0][0] #get object
|
32 |
out_df = Tmain.iloc[row,:12]
|
33 |
+
out_df['geom'] = Tgeom.iloc[row,0]
|
34 |
+
geojson_string = out_df.to_json(orient='index')
|
35 |
#out_gdf = gpd.GeoDataFrame(out_df, geometry = 'geom') # funktioniert nicht --> Geometrie ist kaputt =(
|
36 |
#geojson_string = out_gdf.to_json(driver='GeoJSON')
|
37 |
|
|
|
49 |
repo = g.get_repo("Giedeon25/GID-Project")
|
50 |
repo.create_file("data/Output/" + ques + ".json", "committing files", geojson_string, branch="main") # create File
|
51 |
|
52 |
+
return(blub + " ==== " + "dllink: https://github.com/Giedeon25/GID-Project/blob/main/data/Output/" + fname + ".json")
|
53 |
|
54 |
|
55 |
#######################################################################################
|