Skip to content

Instantly share code, notes, and snippets.

View Adityanagraj's full-sized avatar
:octocat:
I may be slow to respond but i will respond for sure

Aditya N Adityanagraj

:octocat:
I may be slow to respond but i will respond for sure
View GitHub Profile
from flask import Flask, request
from twilio.twiml.messaging_response import MessagingResponse
import requests
import json
from flask import Flask, request
from twilio.twiml.messaging_response import MessagingResponse
import requests
import json
def sms_reply():
"""Respond to incoming calls with a simple text message."""
# Fetch the message
incoming_msg = request.values.get('Body', '')
#print(incoming_msg)
resp = MessagingResponse()
msg = resp.message()
responded = False
from flask import Flask, request
from twilio.twiml.messaging_response import MessagingResponse
import requests
import json
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello, World i am aditya!"
torch.tensor(1.)
torch.tensor([1.,2.,4.])
d=torch.zeros(5,3)
d.fill_diagonal_(5)
d=torch.ones(5,3)
d.fill_diagonal_(5)
d=torch.ones(5,3)
d.fill_diagonal_(5)
x=torch.rand(3,4)
print(x)
x.reshape(1,12)