YchKhan commited on
Commit
2146cee
Β·
1 Parent(s): 394c1b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 + ".txt"
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):