Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -444,7 +444,7 @@ def upload_text_file(content):
|
|
444 |
data = {"content": content, "syntax": "text", "expiry_days": 1}
|
445 |
headers = {"User-Agent": "Sources"}
|
446 |
r = requests.post("https://dpaste.com/api/", data=data, headers=headers)
|
447 |
-
return r.text
|
448 |
|
449 |
|
450 |
def ask_df(df, api_key, model, ui_session_id):
|
|
|
444 |
data = {"content": content, "syntax": "text", "expiry_days": 1}
|
445 |
headers = {"User-Agent": "Sources"}
|
446 |
r = requests.post("https://dpaste.com/api/", data=data, headers=headers)
|
447 |
+
return f"{str(r.text)[:-1]}.txt"
|
448 |
|
449 |
|
450 |
def ask_df(df, api_key, model, ui_session_id):
|