Spaces:
Sleeping
Sleeping
Test DL Links erstellen
Browse filesIch kriege es nicht hin einen Branch zu erstellen ([remote rejected] test_jens -> test_jens (pre-receive hook declined)) und versuche es kurz direkt auf dem Main Branch.
Idee: Aus der Antwort eine Geojson basteln, in Daten abspeichern, und DL Link für die Datei erzeugen
app.py
CHANGED
@@ -25,7 +25,9 @@ def AskAI(ques, lv, table_main = table_main):
|
|
25 |
def AskAI_easy(ques):
|
26 |
Tmain = pd.read_csv('./data' + '/' + 'gadm41_DEU_1_main').astype(str)
|
27 |
blub = str(AskAI(ques,1,Tmain))
|
28 |
-
return(blub)
|
|
|
|
|
29 |
|
30 |
|
31 |
#######################################################################################
|
|
|
25 |
def AskAI_easy(ques):
|
26 |
Tmain = pd.read_csv('./data' + '/' + 'gadm41_DEU_1_main').astype(str)
|
27 |
blub = str(AskAI(ques,1,Tmain))
|
28 |
+
#return(blub)
|
29 |
+
Tmain.to_csv('./data' + '/' + str(ques).strip() + ".txt")
|
30 |
+
return(str(blub) + " === downloadlink: " + 'https://huggingface.co/spaces/GIDGruppe/GID_HuggingFace/resolve/main/data' + '/' + str(ques) + ".txt" + "?download=true")
|
31 |
|
32 |
|
33 |
#######################################################################################
|